/* [ Очистить все ] */ private void btnCbrClear_Click(object sender, EventArgs e) { CbrDataSourceLoad(); cboCbrDisModel.Enabled = false; foreach (DataGridViewColumn column in dataGridViewCbrSearch.Columns) { column.DefaultCellStyle.BackColor = Color.White; } manufacturer = null; disCurrent = null; cbCurrent = null; icuValue = null; disType = null; disModel = null; SearchCbr(null); foreach (Control ctr in gbxFilterCbr.Controls) { if (ctr.GetType() == typeof(ComboBox)) { ctr.ResetText(); } } }
//отключающая способность private void cboCbrIcu_SelectionChangeCommitted(object sender, EventArgs e) { icuValue = cboCbrIcu.SelectedItem as IcuValue; if (icuValue != null) { SearchCbr(dgvcCmbIcuVal); } }
//отключающая способность private void pbxClearIcu_Click(object sender, EventArgs e) { dgvcCmbIcuVal.DefaultCellStyle.BackColor = System.Drawing.Color.White; if (cbCurrent == null) { bs_icuVCbr.DataSource = EquipServices.GetAllIcu(); } icuValue = null; cboCbrIcu.ResetText(); SearchCbr(null); }