protected override void DoubleClickedItem(int id) { var item = FindItem(id, rootItem); if (item is DeviceItem deviceItem) { InputDeviceDebuggerWindow.CreateOrShowExisting(deviceItem.device); } }
protected override void DoubleClickedItem(int id) { var item = FindItem(id, rootItem); if (item == null) return; var deviceItem = item as DeviceItem; if (deviceItem != null) { InputDeviceDebuggerWindow.CreateOrShowExisting(deviceItem.device); return; } }