|
|
|
@ -36,109 +36,109 @@ namespace SharpRefactoring.Forms
@@ -36,109 +36,109 @@ namespace SharpRefactoring.Forms
|
|
|
|
|
/// </summary>
|
|
|
|
|
private void InitializeComponent() |
|
|
|
|
{ |
|
|
|
|
this.label1 = new System.Windows.Forms.Label(); |
|
|
|
|
this.label2 = new System.Windows.Forms.Label(); |
|
|
|
|
this.txtName = new System.Windows.Forms.TextBox(); |
|
|
|
|
this.txtPreview = new System.Windows.Forms.TextBox(); |
|
|
|
|
this.btnCancel = new System.Windows.Forms.Button(); |
|
|
|
|
this.btnOK = new System.Windows.Forms.Button(); |
|
|
|
|
this.SuspendLayout(); |
|
|
|
|
//
|
|
|
|
|
// label1
|
|
|
|
|
//
|
|
|
|
|
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Left) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Right))); |
|
|
|
|
this.label1.AutoSize = true; |
|
|
|
|
this.label1.Location = new System.Drawing.Point(12, 9); |
|
|
|
|
this.label1.Name = "label1"; |
|
|
|
|
this.label1.Size = new System.Drawing.Size(167, 13); |
|
|
|
|
this.label1.TabIndex = 0; |
|
|
|
|
this.label1.Text = "Enter a name for the new method:"; |
|
|
|
|
//
|
|
|
|
|
// label2
|
|
|
|
|
//
|
|
|
|
|
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Left) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Right))); |
|
|
|
|
this.label2.AutoSize = true; |
|
|
|
|
this.label2.Location = new System.Drawing.Point(12, 48); |
|
|
|
|
this.label2.Name = "label2"; |
|
|
|
|
this.label2.Size = new System.Drawing.Size(48, 13); |
|
|
|
|
this.label2.TabIndex = 1; |
|
|
|
|
this.label2.Text = "Preview:"; |
|
|
|
|
//
|
|
|
|
|
// txtName
|
|
|
|
|
//
|
|
|
|
|
this.txtName.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Left) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Right))); |
|
|
|
|
this.txtName.Location = new System.Drawing.Point(12, 25); |
|
|
|
|
this.txtName.Name = "txtName"; |
|
|
|
|
this.txtName.Size = new System.Drawing.Size(467, 20); |
|
|
|
|
this.txtName.TabIndex = 2; |
|
|
|
|
this.txtName.TextChanged += new System.EventHandler(this.txtName_TextChanged); |
|
|
|
|
//
|
|
|
|
|
// txtPreview
|
|
|
|
|
//
|
|
|
|
|
this.txtPreview.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Left) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Right))); |
|
|
|
|
this.txtPreview.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|
|
|
|
this.txtPreview.Location = new System.Drawing.Point(12, 64); |
|
|
|
|
this.txtPreview.Multiline = true; |
|
|
|
|
this.txtPreview.Name = "txtPreview"; |
|
|
|
|
this.txtPreview.ReadOnly = true; |
|
|
|
|
this.txtPreview.Size = new System.Drawing.Size(467, 151); |
|
|
|
|
this.txtPreview.TabIndex = 3; |
|
|
|
|
//
|
|
|
|
|
// btnCancel
|
|
|
|
|
//
|
|
|
|
|
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
|
|
|
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; |
|
|
|
|
this.btnCancel.Location = new System.Drawing.Point(404, 221); |
|
|
|
|
this.btnCancel.Name = "btnCancel"; |
|
|
|
|
this.btnCancel.Size = new System.Drawing.Size(75, 23); |
|
|
|
|
this.btnCancel.TabIndex = 4; |
|
|
|
|
this.btnCancel.Text = "Cancel"; |
|
|
|
|
this.btnCancel.UseVisualStyleBackColor = true; |
|
|
|
|
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); |
|
|
|
|
//
|
|
|
|
|
// btnOK
|
|
|
|
|
//
|
|
|
|
|
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
|
|
|
this.btnOK.Location = new System.Drawing.Point(323, 221); |
|
|
|
|
this.btnOK.Name = "btnOK"; |
|
|
|
|
this.btnOK.Size = new System.Drawing.Size(75, 23); |
|
|
|
|
this.btnOK.TabIndex = 5; |
|
|
|
|
this.btnOK.Text = "OK"; |
|
|
|
|
this.btnOK.UseVisualStyleBackColor = true; |
|
|
|
|
this.btnOK.Click += new System.EventHandler(this.btnOK_Click); |
|
|
|
|
//
|
|
|
|
|
// ExtractMethodForm
|
|
|
|
|
//
|
|
|
|
|
this.AcceptButton = this.btnOK; |
|
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
|
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|
|
|
|
this.CancelButton = this.btnCancel; |
|
|
|
|
this.ClientSize = new System.Drawing.Size(491, 252); |
|
|
|
|
this.Controls.Add(this.btnOK); |
|
|
|
|
this.Controls.Add(this.btnCancel); |
|
|
|
|
this.Controls.Add(this.txtPreview); |
|
|
|
|
this.Controls.Add(this.txtName); |
|
|
|
|
this.Controls.Add(this.label2); |
|
|
|
|
this.Controls.Add(this.label1); |
|
|
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; |
|
|
|
|
this.MaximizeBox = false; |
|
|
|
|
this.MinimizeBox = false; |
|
|
|
|
this.Name = "ExtractMethodForm"; |
|
|
|
|
this.ShowIcon = false; |
|
|
|
|
this.ShowInTaskbar = false; |
|
|
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
|
|
|
|
this.Text = "Extract Method"; |
|
|
|
|
this.ResumeLayout(false); |
|
|
|
|
this.PerformLayout(); |
|
|
|
|
|
|
|
|
|
this.label1 = new System.Windows.Forms.Label(); |
|
|
|
|
this.label2 = new System.Windows.Forms.Label(); |
|
|
|
|
this.txtName = new System.Windows.Forms.TextBox(); |
|
|
|
|
this.txtPreview = new System.Windows.Forms.TextBox(); |
|
|
|
|
this.btnCancel = new System.Windows.Forms.Button(); |
|
|
|
|
this.btnOK = new System.Windows.Forms.Button(); |
|
|
|
|
this.SuspendLayout(); |
|
|
|
|
//
|
|
|
|
|
// label1
|
|
|
|
|
//
|
|
|
|
|
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Left) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Right))); |
|
|
|
|
this.label1.AutoSize = true; |
|
|
|
|
this.label1.Location = new System.Drawing.Point(12, 9); |
|
|
|
|
this.label1.Name = "label1"; |
|
|
|
|
this.label1.Size = new System.Drawing.Size(167, 13); |
|
|
|
|
this.label1.TabIndex = 0; |
|
|
|
|
this.label1.Text = "Enter a name for the new method:"; |
|
|
|
|
//
|
|
|
|
|
// label2
|
|
|
|
|
//
|
|
|
|
|
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Left) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Right))); |
|
|
|
|
this.label2.AutoSize = true; |
|
|
|
|
this.label2.Location = new System.Drawing.Point(12, 48); |
|
|
|
|
this.label2.Name = "label2"; |
|
|
|
|
this.label2.Size = new System.Drawing.Size(48, 13); |
|
|
|
|
this.label2.TabIndex = 1; |
|
|
|
|
this.label2.Text = "Preview:"; |
|
|
|
|
//
|
|
|
|
|
// txtName
|
|
|
|
|
//
|
|
|
|
|
this.txtName.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Left) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Right))); |
|
|
|
|
this.txtName.Location = new System.Drawing.Point(12, 25); |
|
|
|
|
this.txtName.Name = "txtName"; |
|
|
|
|
this.txtName.Size = new System.Drawing.Size(467, 20); |
|
|
|
|
this.txtName.TabIndex = 2; |
|
|
|
|
this.txtName.TextChanged += new System.EventHandler(this.txtNameTextChanged); |
|
|
|
|
//
|
|
|
|
|
// txtPreview
|
|
|
|
|
//
|
|
|
|
|
this.txtPreview.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Left) |
|
|
|
|
| System.Windows.Forms.AnchorStyles.Right))); |
|
|
|
|
this.txtPreview.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|
|
|
|
this.txtPreview.Location = new System.Drawing.Point(12, 64); |
|
|
|
|
this.txtPreview.Multiline = true; |
|
|
|
|
this.txtPreview.Name = "txtPreview"; |
|
|
|
|
this.txtPreview.ReadOnly = true; |
|
|
|
|
this.txtPreview.Size = new System.Drawing.Size(467, 151); |
|
|
|
|
this.txtPreview.TabIndex = 3; |
|
|
|
|
//
|
|
|
|
|
// btnCancel
|
|
|
|
|
//
|
|
|
|
|
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
|
|
|
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; |
|
|
|
|
this.btnCancel.Location = new System.Drawing.Point(404, 221); |
|
|
|
|
this.btnCancel.Name = "btnCancel"; |
|
|
|
|
this.btnCancel.Size = new System.Drawing.Size(75, 23); |
|
|
|
|
this.btnCancel.TabIndex = 4; |
|
|
|
|
this.btnCancel.Text = "Cancel"; |
|
|
|
|
this.btnCancel.UseVisualStyleBackColor = true; |
|
|
|
|
this.btnCancel.Click += new System.EventHandler(this.btnCancelClick); |
|
|
|
|
//
|
|
|
|
|
// btnOK
|
|
|
|
|
//
|
|
|
|
|
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
|
|
|
this.btnOK.Location = new System.Drawing.Point(323, 221); |
|
|
|
|
this.btnOK.Name = "btnOK"; |
|
|
|
|
this.btnOK.Size = new System.Drawing.Size(75, 23); |
|
|
|
|
this.btnOK.TabIndex = 5; |
|
|
|
|
this.btnOK.Text = "OK"; |
|
|
|
|
this.btnOK.UseVisualStyleBackColor = true; |
|
|
|
|
this.btnOK.Click += new System.EventHandler(this.btnOKClick); |
|
|
|
|
//
|
|
|
|
|
// ExtractMethodForm
|
|
|
|
|
//
|
|
|
|
|
this.AcceptButton = this.btnOK; |
|
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
|
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|
|
|
|
this.CancelButton = this.btnCancel; |
|
|
|
|
this.ClientSize = new System.Drawing.Size(491, 252); |
|
|
|
|
this.Controls.Add(this.btnOK); |
|
|
|
|
this.Controls.Add(this.btnCancel); |
|
|
|
|
this.Controls.Add(this.txtPreview); |
|
|
|
|
this.Controls.Add(this.txtName); |
|
|
|
|
this.Controls.Add(this.label2); |
|
|
|
|
this.Controls.Add(this.label1); |
|
|
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; |
|
|
|
|
this.MaximizeBox = false; |
|
|
|
|
this.MinimizeBox = false; |
|
|
|
|
this.Name = "ExtractMethodForm"; |
|
|
|
|
this.ShowIcon = false; |
|
|
|
|
this.ShowInTaskbar = false; |
|
|
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
|
|
|
|
this.Text = "Extract Method"; |
|
|
|
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ExtractMethodFormFormClosing); |
|
|
|
|
this.ResumeLayout(false); |
|
|
|
|
this.PerformLayout(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private System.Windows.Forms.Label label1; |
|
|
|
|