Ejemplo n.º 1
0
 public MainWindow()
 {
     InitializeComponent();
     if(Registry.CurrentUser.OpenSubKey(Constants.registryAppNode) == null)
         Registry.CurrentUser.CreateSubKey(Constants.registryAppNode);
     _modbusRtuProtocol = new ModbusRtuProtocol();
     _deviceFinder = new DeviceFinder(_modbusRtuProtocol);
     Devices = new ObservableCollection<Device>();
     WorkerInProgress = false;
     SelectedDevice = null;
     SelectedPortConfiguration = null;
     SelectedModbusQuery = null;
     _deviceReaderSaver = new ModbusReaderSaver(_modbusRtuProtocol);
     _foundDevicesCount = 0;
     _deviceSnapshotBefore = null;
     _supressMBox = false;
     _dispatcher = Dispatcher.CurrentDispatcher;
 }
Ejemplo n.º 2
0
 public DevicesFinderConfigWindow(DeviceFinder finder)
 {
     InitializeComponent();
     _finder = finder;
 }