예제 #1
0
 private void ButtonAjouter_Click(object sender, EventArgs e)
 {
     try
     {
         AddVehicule add = new AddVehicule();
         add.StartPosition = FormStartPosition.CenterScreen;
         add.ShowDialog();
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #2
0
 private void ButtonAjouter_Click(object sender, EventArgs e)
 {
     try
     {
         AddVehicule add = new AddVehicule();
         add.Owner         = this;
         add.StartPosition = FormStartPosition.CenterScreen;
         add.TopMost       = true;
         add.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }