Beispiel #1
0
        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();
        }
Beispiel #2
0
        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());
            }
        }