public MainUI() { InitializeComponent(); OpenList.DisplayMember = "Text"; OpenList.ClearSelected(); OpenList2.DisplayMember = "Text"; OpenList2.ClearSelected(); }
private void ArbIn2_CheckedChanged(object sender, EventArgs e) { OpenList2.Enabled = !arbIn2.Checked; OpenList2.ClearSelected(); if (!arbIn1.Checked && !arbIn2.Checked && (OpenList.SelectedIndex != -1 || OpenList2.SelectedIndex != -1)) { Start.Enabled = false; } }