private void Button_Click(object sender, RoutedEventArgs e) { //changes page to resevations Resevations resevations = new Resevations(contentControl, Reception); contentControl.Content = resevations; }
private void Button_Click(object sender, RoutedEventArgs e) { //removes the current resevation and changes page to resevations Reception.RemoveReservation(this.Reservation.OrderNumber); Resevations resevations = new Resevations(ContentControl, Reception); ContentControl.Content = resevations.Content; }
private void Button_Click(object sender, RoutedEventArgs e) { //makes a resevation and changes the page to resevations Customer customer = new Customer(firstname.Text,lastname.Text,adresse.Text,city.Text,postal.Text,country.Text,email.Text,phoneNumber.Text); Reservation reservation = new Reservation(customer,Room,DateTime.Now, (DateTime)datePicker.SelectedDate); Reception.CreateCustomer(customer); Reception.CreateReservation(reservation); Resevations resevations = new Resevations(ContentControl,Reception); ContentControl.Content = resevations; }