Exemple #1
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (this.dataGridView1.Rows.Count == 0)
         return;
     if ((this.MdiParent as MForm1).OpenChildForm(typeof(A_HT_OP)))
         return;
     A_HT_OP cm = new A_HT_OP(3, this, this.dataGridView1.SelectedRows[0], this.htype);
     cm.MdiParent = this.MdiParent;
     cm.Show();
 }
Exemple #2
0
 private void sumGridView1_Grid_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex < 0)
         return;
     A_HT_OP cm = new A_HT_OP(3, null, this.sumGridView1.Grid.SelectedRows[0], null);
     cm.MdiParent = this.MdiParent;
     cm.Show();
 }
Exemple #3
0
 private void btn_Add(object sender, EventArgs e)
 {
     if ((this.MdiParent as MForm1).OpenChildForm(typeof(A_HT_OP)))
         return;
     A_HT_OP cm = new A_HT_OP(1, this, this.htype);
     cm.MdiParent = this.MdiParent;
     cm.Show();
 }