예제 #1
0
        //clears all the ticked boxes
        private void Clear_all_Click(object sender, EventArgs e)
        {
            if (Weeks.SelectionMode != SelectionMode.None)
            {
                Weeks.ClearSelected();
            }
            All_dates.Checked = false;

            if (Provider.SelectionMode != SelectionMode.None)
            {
                Provider.ClearSelected();
            }
            All_providers.Checked = false;

            if (Provider_type.SelectionMode != SelectionMode.None)
            {
                Provider_type.ClearSelected();
            }
            All_Provider_types.Checked = false;

            if (Shops.SelectionMode != SelectionMode.None)
            {
                Shops.ClearSelected();
            }
            All_shops.Checked = false;
        }
예제 #2
0
 private void All_shops_CheckedChanged(object sender, EventArgs e)
 {
     if (All_shops.Checked == true)
     {
         allShops = true;
         Shops.ClearSelected();
         Shops.SelectionMode = SelectionMode.None;
     }
     else
     {
         allShops             = false;
         Shops.SelectionMode  = SelectionMode.One;
         All_selected.Checked = false;
     }
 }