修复首次启动Netch开启启动后测试延迟,启动后会跳回第一个服务器

This commit is contained in:
ChsBuffer
2020-08-01 01:47:49 +08:00
parent 5495b94513
commit 46dfc885a2
2 changed files with 11 additions and 0 deletions

View File

@@ -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
//

View File

@@ -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;
}
}
}