/// <summary> /// Constructor /// </summary> public DeviceExploring(SlaveDeviceCollection devices, CanAdapterDevice adapter) { this.BackgroundWorker = new BackgroundWorker(); this.BackgroundWorker.DoWork += new DoWorkEventHandler(BackgroundWorker_DoWork); this.Devices = devices; this.Adapter = adapter; }
/// <summary> /// Constructor /// </summary> public DeviceNetMaster() { Adapter = new CanAdapterDevice(); Devices = new SlaveDeviceCollection(this); Exploring = new DeviceExploring(Devices, Adapter); Connected = new ConnectedSalveDevice(Adapter, 0); Unconnected = new UnconnectedSalveDevice(Adapter); Worker = new BackgroundWorker(); Worker.DoWork += new DoWorkEventHandler(Worker_DoWork); }