Esempio n. 1
0
        public EquipmentViewModel(ViewModelBase parent, Equipment selectedEquipment)// : base()
        {
            Parent = parent;
 
            SelectedEquipment = selectedEquipment;
            SetLeftPanel();
        }
Esempio n. 2
0
        public EquipmentLeftViewModel(ViewModelBase parent)
        {
            Parent = parent;

            _selectedEquipment = ((EquipmentViewModel)Parent).SelectedEquipment;

            Title = "EQUIPMENT";
            Label1 = "Company: ";
            Label2 = "Site: ";

            LoadSiteRadioButtonList();

            ReturnVisibility = Visibility.Visible;
        }
Esempio n. 3
0
        private void ToEquipmentView(Equipment equipment)
        {
            MainViewModel model = ((MainViewModel)Parent.Parent.Parent);

            Page page = new CustomerSiteEquipmentPage();
            page.DataContext = new EquipmentViewModel(model, equipment);
            model.CustomerSiteEquipmentPage = page;
        }
 public sTabAddEditEquipmentViewModel(ViewModelBase parent, Equipment editEquipment)
     : this(parent)      // pass in parent, by Fred, 2-5-2013
 {
     _editEquipment = editEquipment;
 }