private void Creer_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         UcUniteComptage form = new UcUniteComptage(null, SessionObject.ExecMode.Creation, dtgrdParametre);
         form.Closed += form_Closed;
         form.Show();
     }
     catch (Exception ex)
     {
         Message.ShowError(ex.Message, Languages.UniteComptage);
     }
 }
 private void Consulter_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (dtgrdParametre.SelectedItem != null)
         {
             var             objetselectionne = (CsUniteComptage)dtgrdParametre.SelectedItem;
             UcUniteComptage form             = new UcUniteComptage(objetselectionne, SessionObject.ExecMode.Consultation, dtgrdParametre);
             form.Closed += form_Closed;
             form.Show();
         }
     }
     catch (Exception ex)
     {
         Message.ShowError(ex.Message, Languages.UniteComptage);
     }
 }