public ProtocolsCatalogVM(TECTemplates templates, ReferenceDropper dropHandler) : base(templates, dropHandler) { this.ConnectionTypes = new ObservableCollection <TECConnectionType>(); this.AddProtocolCommand = new RelayCommand(addProtocolExecute, canAddProtocol); this.ConnectionTypes.CollectionChanged += connectionTypesCollectionChanged; }
public DevicesCatalogVM(TECTemplates templates, ReferenceDropper dropHandler) : base(templates, dropHandler) { this.DeviceConnectionTypes = new ObservableCollection <TECConnectionType>(); this.DeviceProtocols = new ObservableCollection <TECProtocol>(); this.AddDeviceCommand = new RelayCommand(addDeviceExecute, canAddDevice); this.DeleteDeviceCommand = new RelayCommand(deleteDeviceExecute, canDeleteDevice); }
public IOModulesCatalogVM(TECTemplates templates, ReferenceDropper dropHandler) : base(templates, dropHandler) { this.ModuleIO = new ObservableCollection <TECIO>(); this.AddIOToModuleCommand = new RelayCommand(addIOToModuleExecute, canAddIOToModule); this.AddIOModuleCommand = new RelayCommand(addIOModuleExecute, canAddIOModuleExecute); this.ProtocolToIODropTarget = new ProtocolToIODropTarget(); }
public ControllerTypesCatalogVM(TECTemplates templates, ReferenceDropper dropHandler) : base(templates, dropHandler) { this.ControllerTypeIO = new ObservableCollection <TECIO>(); this.ControllerTypeModules = new QuantityCollection <TECIOModule>(); this.AddIOCommand = new RelayCommand(addIOToControllerTypeExecute, canAddIOToControllerType); this.AddControllerTypeCommand = new RelayCommand(addControllerTypeExecute, canAddControllerType); this.ProtocolToIODropTarget = new ProtocolToIODropTarget(); }
public MaterialVM(TECTemplates templates) { ReferenceDropHandler = new ReferenceDropper(templates); Templates = templates; //Setup VMs subscribeToVM(DeviceVM = new DevicesCatalogVM(templates, ReferenceDropHandler)); subscribeToVM(ValveVM = new ValvesCatalogVM(templates, ReferenceDropHandler)); subscribeToVM(ConnectionTypeVM = new ConnectionTypesCatalogVM(templates, ReferenceDropHandler)); subscribeToVM(ConduitTypeVM = new ConduitTypesCatalogVM(templates, ReferenceDropHandler)); subscribeToVM(ControllerTypeVM = new ControllerTypesCatalogVM(templates, ReferenceDropHandler)); subscribeToVM(PanelTypeVM = new PanelTypesCatalogVM(templates, ReferenceDropHandler)); subscribeToVM(AssociatedCostVM = new AssociatedCostsCatalogVM(templates, ReferenceDropHandler)); subscribeToVM(IOModuleVM = new IOModulesCatalogVM(templates, ReferenceDropHandler)); subscribeToVM(ManufacturerVM = new ManufacturersCatalogVM(templates, ReferenceDropHandler)); subscribeToVM(TagVM = new TagsCatalogVM(templates, ReferenceDropHandler)); subscribeToVM(MiscVM = new MiscCostsVM(templates)); subscribeToVM(ProtocolVM = new ProtocolsCatalogVM(templates, ReferenceDropHandler)); }
public PanelTypesCatalogVM(TECTemplates templates, ReferenceDropper dropHandler) : base(templates, dropHandler) { this.AddPanelTypeCommand = new RelayCommand(addPanelTypeExecute, canAddPanelType); }
public ManufacturersCatalogVM(TECTemplates templates, ReferenceDropper dropHandler) : base(templates, dropHandler) { this.AddManufacturerCommand = new RelayCommand(addManufacturerExecute, canAddManufacturer); }
public AssociatedCostsCatalogVM(TECTemplates templates, ReferenceDropper dropHandler) : base(templates, dropHandler) { this.AddAssociatedCostCommand = new RelayCommand(addAsociatedCostExecute, canAddAssociatedCost); }
public ValvesCatalogVM(TECTemplates templates, ReferenceDropper dropHandler) : base(templates, dropHandler) { this.AddValveCommand = new RelayCommand(addValveExecute, canAddValve); this.DeleteValveCommand = new RelayCommand(deleteValveExecute, canDeleteValve); this.ReplaceActuatorCommand = new RelayCommand(replaceActuatorExecute, canReplaceActuator); }
public ConnectionTypesCatalogVM(TECTemplates templates, ReferenceDropper dropHandler) : base(templates, dropHandler) { this.AddConnectionTypeCommand = new RelayCommand(addConnectionTypeExecute); }
protected CatalogVMBase(TECTemplates templates, ReferenceDropper dropHandler) { this.Templates = templates; this.ReferenceDropHandler = dropHandler; }
public TagsCatalogVM(TECTemplates templates, ReferenceDropper dropHandler) : base(templates, dropHandler) { this.AddTagCommand = new RelayCommand(addTagExecute, canAddTag); }