private void LoadData(string bookingid) { booking = facade.GetBooking(bookingid); reservation = facade.GetReservation(booking.ReservationID); contract = facade.GetCustomer(booking.ContractID); InitializeWindowContent(); }
private void InitializeWindowContent() { reservation = facade.GetReservation(booking.ReservationID); contract = facade.GetCustomer(booking.ContractID); reservationNumber.Content = reservation.ID; checkInDate.Content = booking.StartDate.ToLongDateString().ToString(); checkOutDate.Content = booking.EndDate.ToLongDateString().ToString(); contracts.Content = contract.Name.ToString(); roomType.Content = booking.Roomtype.ToString(); contractsNum.Content = contract.Phone; company.Content = contract.Company; address.Text = contract.Address; roomPrice.Content = booking.ThisPrice; roomsprice = booking.ThisPrice; checkOutTime.Content = IClock.Time.GetDateTimeFormats('f')[0].ToString(); downPayment.Content = reservation.DownPayment; LoadRoomList(); CalculatePrice(); }