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