From 7fb1a79cf9a1e99b2aee0bd4545e4f751b2124f1 Mon Sep 17 00:00:00 2001 From: Sleevezipper Date: Mon, 15 Mar 2021 21:07:02 +0100 Subject: [PATCH] fix #49 - don't sort sensors by name --- UserInterface/Views/AddCommandDialog.axaml.cs | 2 +- UserInterface/Views/AddSensorDialog.axaml.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UserInterface/Views/AddCommandDialog.axaml.cs b/UserInterface/Views/AddCommandDialog.axaml.cs index b8590d6..e6a615a 100644 --- a/UserInterface/Views/AddCommandDialog.axaml.cs +++ b/UserInterface/Views/AddCommandDialog.axaml.cs @@ -25,7 +25,7 @@ namespace UserInterface.Views this.InitializeComponent(); DataContext = new AddCommandViewModel(); this.comboBox = this.FindControl("ComboBox"); - this.comboBox.Items = Enum.GetValues(typeof(AvailableCommands)).Cast().OrderBy(v => v.ToString()); + this.comboBox.Items = Enum.GetValues(typeof(AvailableCommands)).Cast(); this.comboBox.SelectedIndex = 0; // register IPC clients diff --git a/UserInterface/Views/AddSensorDialog.axaml.cs b/UserInterface/Views/AddSensorDialog.axaml.cs index c1543d1..245d62b 100644 --- a/UserInterface/Views/AddSensorDialog.axaml.cs +++ b/UserInterface/Views/AddSensorDialog.axaml.cs @@ -25,7 +25,7 @@ namespace UserInterface.Views this.InitializeComponent(); DataContext = new AddSensorViewModel(); this.comboBox = this.FindControl("ComboBox"); - this.comboBox.Items = Enum.GetValues(typeof(AvailableSensors)).Cast().OrderBy(v => v.ToString()); + this.comboBox.Items = Enum.GetValues(typeof(AvailableSensors)).Cast(); this.comboBox.SelectedIndex = 0; // register IPC clients