Exemple #1
0
        /* [ Очистить все ] */
        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();
                }
            }
        }
Exemple #2
0
        //отключающая способность
        private void cboCbrIcu_SelectionChangeCommitted(object sender, EventArgs e)
        {
            icuValue = cboCbrIcu.SelectedItem as IcuValue;

            if (icuValue != null)
            {
                SearchCbr(dgvcCmbIcuVal);
            }
        }
Exemple #3
0
        //отключающая способность
        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);
        }