void UpdateList() { listBox1.SelectionMode = SelectionMode.MultiExtended; listBox1.Items.Clear(); string[] ConfigsList = MyFiles.GetAllConfig(); if (ConfigsList.Length != 0) { listBox1.Items.AddRange(ConfigsList); } else { listBox1.Items.Add("Нет конфигураций"); listBox1.SelectionMode = SelectionMode.None; } listBox2.Items.Clear(); listBox2.Items.AddRange(MyProgrammWork.ActiveConfig.ToArray()); }
public Form1() { InitializeComponent(); MyFiles.Check(); }