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