Example #1
0
 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();
     }
 }
Example #2
0
 public PortAService(PlcService plc, IEventAggregator events) : base(plc, events)
 {
     InstName = "RM3545";
     for (int i = 0; i < 4; i++)
     {
         TestSpecs[i].Name = "RESISTANCE " + i.ToString();
     }
 }
Example #3
0
 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);
 }
Example #4
0
 public CameraService([Inject] IEventAggregator eventAggregator, [Inject] PlcService plc)
 {
     _plc             = plc;
     _eventAggregator = eventAggregator;
     _eventAggregator.Subscribe(this);
 }