private void DeviceCommandChanged(DeviceCommand newDevice, string message) { if (message != null) { ChangeMessage(message); } DeviceCommand.Command[] commands = newDevice.GetDeviceCommands(); UpdateCommandList(commands); currentDevice = newDevice; }
private void UpdateCommands(IUsbDevice dev) { DeviceCommand.Command[] commands = DeviceCommand.GetDeviceCommands(dev); UpdateCommandList(commands); }