private void ClearButton_Click(object sender, EventArgs e) { mbPaused = true; for (int i = 0; i < OptionListBox.Items.Count; i++) { OptionListBox.SetItemChecked(i, false); } mbPaused = false; mBoundSelectionList.Clear(); }
private void SelcectAllButton_Click(object sender, EventArgs e) { mbPaused = true; for (int i = 0; i < OptionListBox.Items.Count; i++) { OptionListBox.SetItemChecked(i, true); } mbPaused = false; foreach (object item in OptionListBox.Items) { mBoundSelectionList.Add(item.ToString()); } }