private void ToSiteView(Site site)
        {
            MainViewModel model = ((MainViewModel)Parent.Parent);

            Page page = new CustomerSiteEquipmentPage();
            page.DataContext = new SiteViewModel(model, site);
            model.CustomerSiteEquipmentPage = page;
        }
Exemple #2
0
 private void SetCustomerSiteEquipmentPage()
 {
     Page page = new CustomerSiteEquipmentPage();
     page.DataContext = new CustomerViewModel(this);
     this.CustomerSiteEquipmentPage = page;
 }
        private void ToEquipmentView(Equipment equipment)
        {
            MainViewModel model = ((MainViewModel)Parent.Parent.Parent);

            Page page = new CustomerSiteEquipmentPage();
            page.DataContext = new EquipmentViewModel(model, equipment);
            model.CustomerSiteEquipmentPage = page;
        }
Exemple #4
0
 private void RefreshSitePage()
 {
     Page page = new CustomerSiteEquipmentPage();
     page.DataContext = new SiteViewModel(_mainViewModel, _site);
     _mainViewModel.CustomerSiteEquipmentPage = page;
 }