Ejemplo n.º 1
0
 public TravelReservation(Travel travel)
 {
     IsModify = true;
     Travel = travel;
     Reservation = new ReservationHelper();
     Reservation.ID_Travel = Travel.ID;
 }
Ejemplo n.º 2
0
 public TravelViewModel(Travel travel)
 {
     Travel = new TravelHelper(travel);
     Title = Consts.TRAVEL_TITLE_EDIT;
     _type = PanelType.Edit;
     IsBackButtonVisible = true;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 4
0
 public void CreateNewReservation(Travel travel)
 {
     _newReservation = new TravelReservation(travel);
     IsEditEnable = true;
     isEditButtonVisible = false;
     _type = PanelType.New;
     _title = Consts.RESERVATION_TITLE_NEW;
 }