public void AddDevice(INDIDevice dev) { if (GetDevice(dev.Name) == null && dev != null && dev.Name != "" && (dev.DriverInterface & Interfaces) == Interfaces) { Devices.Add(dev); if (DeviceAdded != null) { DeviceAdded(this, new DeviceAddedEventArgs(GetDevice(dev.Name))); } } }
public DeviceAddedEventArgs(INDIDevice dev) { Device = dev; }