コード例 #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();
                }
            }
        }
コード例 #2
0
        //ток выключателя
        private void cboCbrCbCur_SelectionChangeCommitted(object sender, EventArgs e)
        {
            cbCurrent = cboCbrCbCur.SelectedItem as CbCurrent;

            if (cbCurrent != null)
            {
                SearchCbr(dgvcCmbCbCur);
                bs_icuVCbr.DataSource = EquipServices.GetAllIcu(cbCurrent.Id);
                cboCbrIcu.ResetText();
            }
        }
コード例 #3
0
        //ток выключателя
        private void pbxClearCbrCur_Click(object sender, EventArgs e)
        {
            dgvcCmbCbCur.DefaultCellStyle.BackColor = System.Drawing.Color.White;
            if (disCurrent == null)
            {
                bs_cbrCCbr.DataSource = EquipServices.GetAllCbCur();
            }

            cbCurrent = null;
            cboCbrCbCur.ResetText();
            if (icuValue == null)
            {
                bs_icuVCbr.DataSource = EquipServices.GetAllIcu();
                cboCbrIcu.ResetText();
            }
            SearchCbr(null);
        }