mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
修复首次启动Netch开启启动后测试延迟,启动后会跳回第一个服务器
This commit is contained in:
2
Netch/Forms/MainForm.Designer.cs
generated
2
Netch/Forms/MainForm.Designer.cs
generated
@@ -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
|
||||
//
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user