Esempio n. 1
0
 private void InitializeVacationDetails(Vacation vac)
 {
     Vacation     = vac;
     _vacationDVM = new VacationDetailViewModel()
     {
         vacation = vac
     };
     Header.Text = vac.Name;
     Locations   = (ObservableCollection <VacationLocation>)vac.Locations;
     PackLists   = (ObservableCollection <PackList>)vac.PackLists;
 }
Esempio n. 2
0
        public VacationDetailPage(VacationDetailViewModel viewModel)
        {
            InitializeComponent();

            this.BindingContext = ViewModelCollection.VacationDetails = viewModel;
        }