summaryrefslogtreecommitdiff
path: root/grapher/Models/Devices/DeviceDialogItem.cs
diff options
context:
space:
mode:
authora1xd <[email protected]>2021-09-15 06:41:57 -0400
committera1xd <[email protected]>2021-09-23 22:34:51 -0400
commit7c0305ae2c99c191baf61eb920025826057d5753 (patch)
tree6a394d4ac8d69436f7bd8f1255f1d4fd3439280c /grapher/Models/Devices/DeviceDialogItem.cs
parentfix potential leaks (diff)
downloadrawaccel-7c0305ae2c99c191baf61eb920025826057d5753.tar.xz
rawaccel-7c0305ae2c99c191baf61eb920025826057d5753.zip
add device menu
Diffstat (limited to 'grapher/Models/Devices/DeviceDialogItem.cs')
-rw-r--r--grapher/Models/Devices/DeviceDialogItem.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/grapher/Models/Devices/DeviceDialogItem.cs b/grapher/Models/Devices/DeviceDialogItem.cs
new file mode 100644
index 0000000..9ca5528
--- /dev/null
+++ b/grapher/Models/Devices/DeviceDialogItem.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace grapher.Models.Devices
+{
+ public class DeviceDialogItem
+ {
+ public MultiHandleDevice device;
+ public DeviceSettings oldSettings;
+ public DeviceConfig newConfig;
+ public string newProfile;
+ public bool overrideDefaultConfig;
+
+ public override string ToString()
+ {
+ return string.IsNullOrWhiteSpace(device.name) ?
+ device.id :
+ device.name;
+ }
+ }
+}