From 46dfc885a2b1709577208b8ca3c4051533186a3f Mon Sep 17 00:00:00 2001 From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com> Date: Sat, 1 Aug 2020 01:47:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A6=96=E6=AC=A1=E5=90=AF?= =?UTF-8?q?=E5=8A=A8Netch=E5=BC=80=E5=90=AF=E5=90=AF=E5=8A=A8=E5=90=8E?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=BB=B6=E8=BF=9F,=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E5=90=8E=E4=BC=9A=E8=B7=B3=E5=9B=9E=E7=AC=AC=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Netch/Forms/MainForm.Designer.cs | 2 ++ Netch/Forms/MainForm.cs | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/Netch/Forms/MainForm.Designer.cs b/Netch/Forms/MainForm.Designer.cs index 94cdbb1e..b60893f4 100644 --- a/Netch/Forms/MainForm.Designer.cs +++ b/Netch/Forms/MainForm.Designer.cs @@ -406,6 +406,7 @@ namespace Netch.Forms this.ModeComboBox.Size = new System.Drawing.Size(546, 24); this.ModeComboBox.TabIndex = 2; this.ModeComboBox.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.ComboBox_DrawItem); + this.ModeComboBox.SelectedIndexChanged += new System.EventHandler(this.ModeComboBox_SelectedIndexChanged); // // ServerComboBox // @@ -420,6 +421,7 @@ namespace Netch.Forms this.ServerComboBox.Size = new System.Drawing.Size(546, 24); this.ServerComboBox.TabIndex = 1; this.ServerComboBox.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.ComboBox_DrawItem); + this.ServerComboBox.SelectedIndexChanged += new System.EventHandler(this.ServerComboBox_SelectedIndexChanged); // // tableLayoutPanel2 // diff --git a/Netch/Forms/MainForm.cs b/Netch/Forms/MainForm.cs index 169f9990..30cc6523 100644 --- a/Netch/Forms/MainForm.cs +++ b/Netch/Forms/MainForm.cs @@ -460,5 +460,14 @@ namespace Netch.Forms #endregion #endregion + + private void ModeComboBox_SelectedIndexChanged(object sender, EventArgs o) + { + Global.Settings.ModeComboBoxSelectedIndex = ModeComboBox.SelectedIndex; + } + private void ServerComboBox_SelectedIndexChanged(object sender, EventArgs o) + { + Global.Settings.ServerComboBoxSelectedIndex = ServerComboBox.SelectedIndex; + } } } \ No newline at end of file