//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; }
private void All_Provider_types_CheckedChanged(object sender, EventArgs e) { if (All_Provider_types.Checked == true) { allSupplierTypes = true; Provider_type.ClearSelected(); Provider_type.SelectionMode = SelectionMode.None; } else { allSupplierTypes = false; Provider_type.SelectionMode = SelectionMode.One; All_selected.Checked = false; } }