public MoveForm(DataForm dForm) { this.InitializeComponent(); this.cDataForm = dForm; this.dgv = dForm.SelectedDgv(); this.nud_MoveCh.Maximum = (Decimal)this.dgv.RowCount; this.nud_MoveCh.Value = (Decimal)(this.dgv.SelectedCells[0].RowIndex + 1); }
public FreqForm(DataForm dForm) { this.InitializeComponent(); this.cDataForm = dForm; this.txt_FreqStart.KeyPress += new KeyPressEventHandler(KeyPressCancel.txt_Freq_KeyPress); this.dgv = dForm.SelectedDgv(); this.nud_FreqAddCh.Maximum = (Decimal)(this.dgv.RowCount - this.dgv.SelectedCells[0].RowIndex); this.cmb_FreqStep.Items.Clear(); this.cmb_FreqStep.Items.AddRange((object[])DataForm.tbl_Step_air); this.cmb_FreqStep.SelectedIndex = 0; }
public SearchForm(AdmsForm aForm, DataForm dForm) { this.cDataForm = dForm; this.mfd = aForm; this.InitializeComponent(); this.cDgv = dForm.SelectedDgv(); this.cmb_Select.Items.Clear(); for (int index = 0; index < this.cDgv.ColumnCount; ++index) { if (this.cDgv.Columns[index].Visible) { this.cmb_Select.Items.Add((object)this.cDgv.Columns[index].HeaderText); } } int stringExact = this.cmb_Select.FindStringExact(this.cDataForm.finedHeader_Bak); if (stringExact != -1) { this.cmb_Select.SelectedIndex = stringExact; } else { this.cmb_Select.SelectedIndex = 0; } switch (this.selCol) { case 1: case 2: case 3: case 9: case 51: this.txt_Data.Text = this.cDataForm.finedVal_Bak[this.selCol]; break; case 4: case 6: case 7: case 8: case 10: case 11: case 12: case 13: case 14: case 15: case 16: case 18: case 22: case 23: case 24: this.cmb_Data.Text = this.cDataForm.finedVal_Bak[this.selCol]; break; default: if (this.cDataForm.finedVal_Bak[this.selCol] == "1") { this.chb_Data.Checked = true; break; } this.chb_Data.Checked = false; break; } }