Example #1
0
 public TravelReservation(Travel travel)
 {
     IsModify = true;
     Travel = travel;
     Reservation = new ReservationHelper();
     Reservation.ID_Travel = Travel.ID;
 }
Example #2
0
 public TravelViewModel(Travel travel)
 {
     Travel = new TravelHelper(travel);
     Title = Consts.TRAVEL_TITLE_EDIT;
     _type = PanelType.Edit;
     IsBackButtonVisible = true;
 }
Example #3
0
 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;
 }