Ejemplo n.º 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();
                }
            }
        }
Ejemplo n.º 2
0
        //ток расцепителя
        private void cboCbrDisCur_SelectionChangeCommitted(object sender, EventArgs e)
        {
            disCurrent = cboCbrDisCur.SelectedItem as DisCurrent;

            if (disCurrent != null)
            {
                SearchCbr(dgvcCmbDisCur);
                bs_cbrCCbr.DataSource = EquipServices.GetAllCbCur(disCurrent.Id);
                bs_disTCbr.DataSource = EquipServices.GetAllDisType(disCurrent.Id);
                cboCbrCbCur.ResetText();
                cboCbrDisType.ResetText();
            }
        }
Ejemplo n.º 3
0
        //ток расцепителя
        private void pbxClearDisCur_Click(object sender, EventArgs e)
        {
            dgvcCmbDisCur.DefaultCellStyle.BackColor = System.Drawing.Color.White;
            if (manufacturer == null)
            {
                bs_disCCbr.DataSource = EquipServices.GetAllDisCur();
            }

            disCurrent = null;
            cboCbrDisCur.ResetText();

            if (cbCurrent == null)
            {
                bs_cbrCCbr.DataSource = EquipServices.GetAllCbCur();
                cboCbrCbCur.ResetText();
            }
            if (disType == null)
            {
                bs_disTCbr.DataSource = EquipServices.GetAllDisType();
                cboCbrDisType.ResetText();
            }
            SearchCbr(null);
        }