internal LinuxDeviceNotifyEventArgs(LinuxDevItem linuxDevItem, DeviceType deviceType, EventType eventType) { mEventType = eventType; mDeviceType = deviceType; switch (mDeviceType) { case DeviceType.Volume: throw new NotImplementedException(mDeviceType.ToString()); case DeviceType.Port: throw new NotImplementedException(mDeviceType.ToString()); case DeviceType.DeviceInterface: mDevice = new LinuxUsbDeviceNotifyInfo(linuxDevItem); mObject = mDevice; break; } }
internal LinuxDeviceNotifyEventArgs(LinuxDevItem linuxDevItem, DeviceType deviceType, EventType eventType) { EventType = eventType; DeviceType = deviceType; switch (DeviceType) { case DeviceType.Volume: throw new NotImplementedException(DeviceType.ToString()); case DeviceType.Port: throw new NotImplementedException(DeviceType.ToString()); case DeviceType.DeviceInterface: Device = new LinuxUsbDeviceNotifyInfo(linuxDevItem); Object = Device; break; } }