//全选反选

        /// <summary>
        ///
        /// </summary>
        void check()
        {

           
            CheckBox []check = new CheckBox[this.checkedListBox1.Items.Count];
            for (int i = 0; i < this.checkedListBox1.Items.Count; i++)
            {
              
                this.checkedListBox1.SetItemChecked(i,true);
            
            }

           
          
        }
 

 

 

 void fanxuan()
        {

        
            for (int i = 0; i < this.checkedListBox1.Items.Count; i++)
            {
                if (this.checkedListBox1.GetItemChecked(i))
                {
                    this.checkedListBox1.SetItemChecked(i, false);
                }
                else
                {

                    this.checkedListBox1.SetItemChecked(i, true);
                }
            
            }
       
       
       
        }