/// <summary> /// The event args to use. /// </summary> /// <param name="device">the changed device</param> public DeviceChangedEventArgs(DeviceBase device) { this.device = device; }
/// <summary> /// Finds a device based on the byte address. /// </summary> /// <param name="address"></param> /// <param name="device"></param> /// <returns></returns> public bool FindDevice(DeviceId address,out DeviceBase device) { return devices.TryGetValue(address, out device); }
public OperatingFlagsData(DeviceBase device, byte data) { this.data = data; this.device = device; }
/// <summary> /// Find a device in the list of devices. /// </summary> /// <param name="address"></param> /// <param name="device"></param> /// <returns></returns> public bool FindDevice(string address, out DeviceBase device) { return FindDevice(new DeviceId(address), out device); }