private void AjouterBienImmobilier(object sender, RoutedEventArgs e) { Statics.TryCatch(() => { lvBienImmobiliers.SelectedItem = BDD.AjouterBienImmobilier(DateTime.Now, BDD.Villes.FirstOrDefault(), ""); }, nameof(AjouterBienImmobilier)); }
private void AjouterClient(object sender, RoutedEventArgs e) { Statics.TryCatch(() => { lvClients.SelectedItem = BDD.AjouterClient("Nouveau", "Client", BDD.Villes.FirstOrDefault(), "", "0032"); }, nameof(AjouterClient)); }
private void AjouterProprietaire(object sender, RoutedEventArgs e) { Statics.TryCatch(() => { lvProprietaires.SelectedItem = BDD.AjouterProprietaire("Nouveau", "Proprietaire", BDD.Villes.FirstOrDefault(), "", "0032"); }, nameof(AjouterProprietaire)); }
private void AjouterVille(object sender, RoutedEventArgs e) { Statics.TryCatch(() => { lvVilles.SelectedItem = BDD.AjouterVille("Nouvelle Ville", "CP"); }, nameof(AjouterVille)); }
private void AjouterType(object sender, RoutedEventArgs e) { Statics.TryCatch(() => { lvTypes.SelectedItem = BDD.AjouterType("Nouveau"); }, nameof(AjouterType)); }