private void BtnNouveau_Click(object sender, RoutedEventArgs e) { try { DegriserChamps(); txtMatricule.Text = Outils.Generator("Chauffeurs"); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void BtnNouveau_Click(object sender, RoutedEventArgs e) { try { DegriserChamps(); txtMatricule.Text = Outils.Generator("TeteEngins"); BtnModifier.IsEnabled = false; BtnSupprimer.IsEnabled = false; } catch (Exception ex) { MessageBox.Show(ex.Message); } }