public PortBService(PlcService plc, IEventAggregator @event) : base(plc, @event) { InstName = "TH"; for (int i = 0; i < 4; i++) { TestSpecs[i].Name = "HI-POT " + i.ToString(); } }
public PortAService(PlcService plc, IEventAggregator events) : base(plc, events) { InstName = "RM3545"; for (int i = 0; i < 4; i++) { TestSpecs[i].Name = "RESISTANCE " + i.ToString(); } }
public PortService(PlcService plc, IEventAggregator events) { Events = events; Plc = plc; Events.Subscribe(this); TestSpecs = new BindableCollection <TestSpecViewModel>(); for (int i = 0; i < 4; i++) { TestSpecs.Add(new TestSpecViewModel( )); } Events.Subscribe(this); }
public CameraService([Inject] IEventAggregator eventAggregator, [Inject] PlcService plc) { _plc = plc; _eventAggregator = eventAggregator; _eventAggregator.Subscribe(this); }