예제 #1
0
        private void buttonItem2_Click(object sender, EventArgs e)
        {
            FDivers ff = new FDivers();

            ff.ShowDialog();
            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);
         }
     }
 }