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