private void AddToListBox(string s, bool b)
 {
     if (checkedListBox1.InvokeRequired)
     {
         AddCheckedListItemCallback c = new AddCheckedListItemCallback(AddToListBox);
         this.Invoke(c, new object[] { s, b });
     }
     else
     {
         checkedListBox1.Items.Add(s, b);
     }
 }
 private void AddToListBox(string s, bool b)
 {
     if (checkedListBox1.InvokeRequired)
     {
         AddCheckedListItemCallback c = new AddCheckedListItemCallback(AddToListBox);
         this.Invoke(c, new object[] { s, b });
     }
     else
     {
         checkedListBox1.Items.Add(s, b);
     }
 }