private void cmbVersionDropDown_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (e.AddedItems.Count == 0) { return; } ComboBoxEntry entry = (ComboBoxEntry)e.AddedItems[0]; selectedVersion = entry.ID; Debug("[KEYSELECT]", "Selected version changed: \"" + selectedVersion + "\"."); }
private void cmbModelDropDown_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (e.AddedItems.Count == 0) { return; } ComboBoxEntry entry = (ComboBoxEntry)e.AddedItems[0]; selectedModel = entry.ID; Debug("[KEYSELECT]", "Selected model changed: \"" + selectedModel + "\"."); selectedVersion = null; cmbVersionDropDown.IsEnabled = true; cmbVersionDropDown.ItemsSource = KeySelectionLists.ModelsHelper[selectedModel]; }