コード例 #1
0
 private void Creer_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         UcMonnaie form = new UcMonnaie(null, SessionObject.ExecMode.Creation, dtgrdParametre);
         form.Closed += form_Closed;
         form.Show();
     }
     catch (Exception ex)
     {
         Message.ShowError(ex.Message, Languages.Monnaie);
     }
 }
コード例 #2
0
 private void Consulter_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (dtgrdParametre.SelectedItem != null)
         {
             var       objetselectionne = (CsMonnaie)dtgrdParametre.SelectedItem;
             UcMonnaie form             = new UcMonnaie(objetselectionne, SessionObject.ExecMode.Consultation, dtgrdParametre);
             form.Closed += form_Closed;
             form.Show();
         }
     }
     catch (Exception ex)
     {
         Message.ShowError(ex.Message, Languages.Monnaie);
     }
 }