fix #49 - don't sort sensors by name

pull/56/head
Sleevezipper 4 years ago
parent 1acbe4f88a
commit 7fb1a79cf9

@ -25,7 +25,7 @@ namespace UserInterface.Views
this.InitializeComponent();
DataContext = new AddCommandViewModel();
this.comboBox = this.FindControl<ComboBox>("ComboBox");
this.comboBox.Items = Enum.GetValues(typeof(AvailableCommands)).Cast<AvailableCommands>().OrderBy(v => v.ToString());
this.comboBox.Items = Enum.GetValues(typeof(AvailableCommands)).Cast<AvailableCommands>();
this.comboBox.SelectedIndex = 0;
// register IPC clients

@ -25,7 +25,7 @@ namespace UserInterface.Views
this.InitializeComponent();
DataContext = new AddSensorViewModel();
this.comboBox = this.FindControl<ComboBox>("ComboBox");
this.comboBox.Items = Enum.GetValues(typeof(AvailableSensors)).Cast<AvailableSensors>().OrderBy(v => v.ToString());
this.comboBox.Items = Enum.GetValues(typeof(AvailableSensors)).Cast<AvailableSensors>();
this.comboBox.SelectedIndex = 0;
// register IPC clients

Loading…
Cancel
Save