还原 "ComboBox 绑定数据"

This commit is contained in:
ChsBuffer
2020-08-25 04:49:58 +08:00
parent 41751db06f
commit b061a00057
8 changed files with 36 additions and 67 deletions

View File

@@ -17,10 +17,6 @@ namespace Netch.Utils
/// </summary>
public static void Load()
{
var raiseListChangedEvents = Global.Modes.RaiseListChangedEvents;
Global.Modes.RaiseListChangedEvents = false;
Global.MainForm.ModeComboBox.DataSource = null;
Global.Modes.Clear();
if (!Directory.Exists(MODE_DIR)) return;
@@ -45,8 +41,6 @@ namespace Netch.Utils
}
Sort();
Global.MainForm.ModeComboBox.DataSource = Global.Modes;
Global.Modes.RaiseListChangedEvents = raiseListChangedEvents;
}
private static void LoadModeFile(string path)