public EquipmentViewModel(ViewModelBase parent, Equipment selectedEquipment)// : base() { Parent = parent; SelectedEquipment = selectedEquipment; SetLeftPanel(); }
public EquipmentLeftViewModel(ViewModelBase parent) { Parent = parent; _selectedEquipment = ((EquipmentViewModel)Parent).SelectedEquipment; Title = "EQUIPMENT"; Label1 = "Company: "; Label2 = "Site: "; LoadSiteRadioButtonList(); ReturnVisibility = Visibility.Visible; }
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; }