public CalculateForm(QSFP28_SNOEC qsfp_dut, DUTCoeffControlByPN table) { InitializeComponent(); this.dut = qsfp_dut; this.dataTable_DUTCoeffControlByPN = table; this.dataGridView1.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; this.dataGridView1.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; this.dataGridView1.AllowUserToAddRows = false; this.dataGridView2.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; this.dataGridView2.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; this.dataGridView2.AllowUserToAddRows = false; for (int i = 0; i < this.dataGridView1.Columns.Count; i++) { this.dataGridView1.Columns[i].Width = this.dataGridView1.Width / this.dataGridView1.Columns.Count; } for (int i = 0; i < this.dataGridView2.Columns.Count; i++) { this.dataGridView2.Columns[i].Width = this.dataGridView2.Width / this.dataGridView2.Columns.Count; } this.dataGridView1.Rows.Add(1); this.dataGridView2.Rows.Add(1); this.dataGridView1.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells; this.dataGridView2.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells; }
public QSFP28_SNOEC(DUTCoeffControlByPN tabe) { this.dataTable_DUTCoeffControlByPN = tabe; }