Пример #1
0
 private void buttonItem6_Click(object sender, EventArgs e)
 {
     {
         FMontage ff = new FMontage();
         ff.ShowDialog();
         buttonX1_Click(sender, e);
         buttonX1_Click(sender, e);
     }
 }
Пример #2
0
 private void buttonX2_Click(object sender, EventArgs e)
 {
     if (dataGridViewX1.Rows.Count != 0)
     {
         if ((dataGridViewX1.CurrentRow.Cells["TYPE"].Value + "").Equals("F"))
         {
             FFondation ff = new FFondation();
             ff.newf    = false;
             ff.NumFact = dataGridViewX1.CurrentRow.Cells["NuM"].Value + "";
             ff.ShowDialog();
             buttonX1_Click(sender, e);
         }
         else if ((dataGridViewX1.CurrentRow.Cells["TYPE"].Value + "").Equals("M"))
         {
             FMontage ff = new FMontage();
             ff.newf    = false;
             ff.NumFact = dataGridViewX1.CurrentRow.Cells["NuM"].Value + "";
             ff.ShowDialog();
             buttonX1_Click(sender, e);
         }
         else if ((dataGridViewX1.CurrentRow.Cells["TYPE"].Value + "").Equals("D"))
         {
             FDeroulage ff = new FDeroulage();
             ff.newf    = false;
             ff.NumFact = dataGridViewX1.CurrentRow.Cells["NuM"].Value + "";
             ff.ShowDialog();
             buttonX1_Click(sender, e);
         }
         else if ((dataGridViewX1.CurrentRow.Cells["TYPE"].Value + "").Equals("T"))
         {
             FDivers ff = new FDivers();
             ff.newf    = false;
             ff.NumFact = dataGridViewX1.CurrentRow.Cells["NuM"].Value + "";
             ff.ShowDialog();
             buttonX1_Click(sender, e);
         }
     }
 }