Browse Source

rename CancelButton to MyCancelButton

tags/3.2
Gang Zhuo 10 years ago
parent
commit
1bb01bb68e
2 changed files with 13 additions and 13 deletions
  1. +11
    -11
      shadowsocks-csharp/View/PACUrlForm.Designer.cs
  2. +2
    -2
      shadowsocks-csharp/View/PACUrlForm.cs

+ 11
- 11
shadowsocks-csharp/View/PACUrlForm.Designer.cs View File

@@ -31,7 +31,7 @@
this.PACUrlTextBox = new System.Windows.Forms.TextBox(); this.PACUrlTextBox = new System.Windows.Forms.TextBox();
this.PACUrlLabel = new System.Windows.Forms.Label(); this.PACUrlLabel = new System.Windows.Forms.Label();
this.OkButton = new System.Windows.Forms.Button(); this.OkButton = new System.Windows.Forms.Button();
this.CancelButton = new System.Windows.Forms.Button();
this.MyCancelButton = new System.Windows.Forms.Button();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.tableLayoutPanel1.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout();
@@ -70,15 +70,15 @@
this.OkButton.UseVisualStyleBackColor = true; this.OkButton.UseVisualStyleBackColor = true;
this.OkButton.Click += new System.EventHandler(this.OkButton_Click); this.OkButton.Click += new System.EventHandler(this.OkButton_Click);
// //
// CancelButton
// MyCancelButton
// //
this.CancelButton.Location = new System.Drawing.Point(84, 3);
this.CancelButton.Name = "CancelButton";
this.CancelButton.Size = new System.Drawing.Size(75, 23);
this.CancelButton.TabIndex = 6;
this.CancelButton.Text = "Cancel";
this.CancelButton.UseVisualStyleBackColor = true;
this.CancelButton.Click += new System.EventHandler(this.CancelButton_Click);
this.MyCancelButton.Location = new System.Drawing.Point(84, 3);
this.MyCancelButton.Name = "MyCancelButton";
this.MyCancelButton.Size = new System.Drawing.Size(75, 23);
this.MyCancelButton.TabIndex = 6;
this.MyCancelButton.Text = "Cancel";
this.MyCancelButton.UseVisualStyleBackColor = true;
this.MyCancelButton.Click += new System.EventHandler(this.MyCancelButton_Click);
// //
// tableLayoutPanel1 // tableLayoutPanel1
// //
@@ -107,7 +107,7 @@
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tableLayoutPanel2.Controls.Add(this.OkButton, 0, 0); this.tableLayoutPanel2.Controls.Add(this.OkButton, 0, 0);
this.tableLayoutPanel2.Controls.Add(this.CancelButton, 1, 0);
this.tableLayoutPanel2.Controls.Add(this.MyCancelButton, 1, 0);
this.tableLayoutPanel2.Location = new System.Drawing.Point(136, 29); this.tableLayoutPanel2.Location = new System.Drawing.Point(136, 29);
this.tableLayoutPanel2.Name = "tableLayoutPanel2"; this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 1; this.tableLayoutPanel2.RowCount = 1;
@@ -144,7 +144,7 @@
private System.Windows.Forms.TextBox PACUrlTextBox; private System.Windows.Forms.TextBox PACUrlTextBox;
private System.Windows.Forms.Label PACUrlLabel; private System.Windows.Forms.Label PACUrlLabel;
private System.Windows.Forms.Button OkButton; private System.Windows.Forms.Button OkButton;
private System.Windows.Forms.Button CancelButton;
private System.Windows.Forms.Button MyCancelButton;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
} }

+ 2
- 2
shadowsocks-csharp/View/PACUrlForm.cs View File

@@ -31,7 +31,7 @@ namespace Shadowsocks.View
private void UpdateTexts() private void UpdateTexts()
{ {
OkButton.Text = I18N.GetString("OK"); OkButton.Text = I18N.GetString("OK");
CancelButton.Text = I18N.GetString("Cancel");
MyCancelButton.Text = I18N.GetString("Cancel");
PACUrlLabel.Text = I18N.GetString("PAC Url"); PACUrlLabel.Text = I18N.GetString("PAC Url");
this.Text = I18N.GetString("Update Online PAC URL"); this.Text = I18N.GetString("Update Online PAC URL");
} }
@@ -61,7 +61,7 @@ namespace Shadowsocks.View
this.Close(); this.Close();
} }


private void CancelButton_Click(object sender, EventArgs e)
private void MyCancelButton_Click(object sender, EventArgs e)
{ {
this.Close(); this.Close();
} }


Loading…
Cancel
Save