private void boutton_Modifier_Reservation_Click(object sender, RoutedEventArgs e) { ModifierLogement modif = new ModifierLogement(log, res, datagridlogement); modif.Show(); this.Close(); }
private void Modifierlogement_Click(object sender, RoutedEventArgs e) { if (Logement_Grid.SelectedItem != null) { Logement l = Logement_Grid.SelectedItem as Logement; ModifierLogement modif = new ModifierLogement(l, ressources, Logement_Grid); modif.Show(); } }