Example #1
0
 public TECValve(Guid guid, TECManufacturer manufacturer, TECDevice actuator) : base(guid, manufacturer, COST_TYPE)
 {
     _style    = "";
     _size     = 0;
     _cv       = 0;
     _actuator = actuator;
 }
        public TECDevice(Guid guid,
                         IEnumerable <TECConnectionType> hardwiredConnectionTypes,
                         IEnumerable <TECProtocol> possibleProtocols,
                         TECManufacturer manufacturer) : base(guid, manufacturer, COST_TYPE)
        {
            this.HardwiredConnectionTypes = new ObservableCollection <TECConnectionType>(hardwiredConnectionTypes);
            this.PossibleProtocols        = new ObservableCollection <TECProtocol>(possibleProtocols);

            this.HardwiredConnectionTypes.CollectionChanged += (sender, args) => CollectionChanged(sender, args, "HardwiredConnectionTypes");
            this.PossibleProtocols.CollectionChanged        += (sender, args) => CollectionChanged(sender, args, "PossibleProtocols");
        }
 public TECIOModule(TECManufacturer manufacturer) : this(Guid.NewGuid(), manufacturer)
 {
 }
 public TECIOModule(Guid guid, TECManufacturer manufacturer) : base(guid, manufacturer, COST_TYPE)
 {
     IO.CollectionChanged += ioCollectionChanged;
 }
 public TECPanelType(Guid guid, TECManufacturer manufacturer) : base(guid, manufacturer, COST_TYPE)
 {
     _type = CostType.TEC;
 }
 public TECPanelType(TECManufacturer manufacturer) : this(Guid.NewGuid(), manufacturer)
 {
 }
Example #7
0
 protected void copyPropertiesFromHardware(TECHardware hardware)
 {
     copyPropertiesFromCost(hardware);
     _manufacturer = hardware.Manufacturer;
     _price        = hardware.Price;
 }
Example #8
0
 public TECHardware(Guid guid, TECManufacturer manufacturer, CostType type) : base(guid, type)
 {
     _manufacturer = manufacturer;
 }
 public TECControllerType(TECManufacturer manufacturer) : this(Guid.NewGuid(), manufacturer)
 {
 }
 public TECControllerType(Guid guid, TECManufacturer manufacturer) : base(guid, manufacturer, COST_TYPE)
 {
     IO.CollectionChanged        += (sender, args) => collectionChanged(sender, args, "IO");
     IOModules.CollectionChanged += (sender, args) => collectionChanged(sender, args, "IOModules");
 }
 public TECDevice(IEnumerable <TECConnectionType> connectionTypes,
                  IEnumerable <TECProtocol> possibleProtocols,
                  TECManufacturer manufacturer) : this(Guid.NewGuid(), connectionTypes, possibleProtocols, manufacturer)
 {
 }
Example #12
0
 public TECValve(TECManufacturer manufacturer, TECDevice actuator) : this(Guid.NewGuid(), manufacturer, actuator)
 {
 }