Esempio n. 1
0
 private void toolStripButton3_Click(object sender, EventArgs e)
 {
     if (my.Nbut == 35)
     {
         frmTemPlan fr = new frmTemPlan();
         fr.idplan = 0;
         fr.Tag    = 0;
         fr.ShowDialog();
     }
     if (my.Nbut == 184)
     {
         frmKP1 fr = new frmKP1();
         fr.idplan = 0;
         fr.Tag    = 0;
         fr.ShowDialog();
     }
     ObnPlan();
 }
Esempio n. 2
0
 private void Dgv1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (my.Nbut == 35)
     {
         if (!my.isFormInMdi("frmTemPlan", (int)Dgv1.Rows[e.RowIndex].Cells[0].Value, my.MDIForm))
         {
             frmTemPlan fr = new frmTemPlan();
             fr.idplan = (int)Dgv1.Rows[e.RowIndex].Cells[0].Value;
             fr.Tag    = Dgv1.Rows[e.RowIndex].Cells[0].Value;
             fr.ShowDialog();
         }
     }
     if (my.Nbut == 184)
     {
         if (!my.isFormInMdi("frmKP1", (int)Dgv1.Rows[e.RowIndex].Cells[0].Value, my.MDIForm))
         {
             frmKP1 fr = new frmKP1();
             fr.idplan = (int)Dgv1.Rows[e.RowIndex].Cells[0].Value;
             fr.Tag    = Dgv1.Rows[e.RowIndex].Cells[0].Value;
             fr.ShowDialog();
         }
     }
     ObnPlan();
 }