예제 #1
0
 private void button5_Click(object sender, EventArgs e)
 {
     try
     {
         ajoutMachine ajoutMachine = new ajoutMachine();
         var          result       = ajoutMachine.ShowDialog();
         RemplirGrid();
     }
     catch (Exception ex)
     {
         MessageFormError MessageForm = new MessageFormError(ex.Message.ToString());
         var result = MessageForm.ShowDialog();
     }
 }
예제 #2
0
        private async void button1_Click(object sender, EventArgs e)
        {
            try
            {
                ajoutMachine ajoutMachine = new ajoutMachine();
                var          result       = ajoutMachine.ShowDialog();
                LoadPicture.Show();

                panel3.Controls.RemoveAt(1);

                var control = await callmachineControl();

                panel3.Controls.Add(control);



                LoadPicture.Hide();
            }
            catch (Exception ex)
            {
                MessageFormError MessageForm = new MessageFormError(ex.Message.ToString());
                var result = MessageForm.ShowDialog();
            }
        }