public void ReverseAllCheckStatus()
 {
     base.FindForm().Cursor = Cursors.WaitCursor;
     MyCheckedListBox.BeginUpdate();
     for (int i = 0; i < MyCheckedListBox.Items.Count; i++)
     {
         MyCheckedListBox.SetItemChecked(i, !MyCheckedListBox.GetItemChecked(i));
     }
     MyCheckedListBox.EndUpdate();
     base.FindForm().Cursor = Cursors.Default;
 }
        public string GetListAsString(bool all)
        {
            StringBuilder str;

            base.FindForm().Cursor = Cursors.WaitCursor;
            str = new StringBuilder(20 * TheCheckedListBox.Items.Count);
            for (int i = 0; i < MyCheckedListBox.Items.Count; i++)
            {
                if (MyCheckedListBox.GetItemChecked(i) || all)
                {
                    str.Append(MyCheckedListBox.Items[i].ToString() + Environment.NewLine);
                }
            }
            base.FindForm().Cursor = Cursors.Default;
            return(str.ToString());
        }