public TravelReservation(Travel travel) { IsModify = true; Travel = travel; Reservation = new ReservationHelper(); Reservation.ID_Travel = Travel.ID; }
public TravelViewModel(Travel travel) { Travel = new TravelHelper(travel); Title = Consts.TRAVEL_TITLE_EDIT; _type = PanelType.Edit; IsBackButtonVisible = true; }
public TravelHelper(Travel travel) { this.ID = travel.ID; this.Title = travel.Title; this.City = travel.City; this.Start = travel.Start; this.End = travel.End; this.Description = travel.Description; this.Price = travel.Price; this.ImagePath = travel.ImagePath; }
public void CreateNewReservation(Travel travel) { _newReservation = new TravelReservation(travel); IsEditEnable = true; isEditButtonVisible = false; _type = PanelType.New; _title = Consts.RESERVATION_TITLE_NEW; }