示例#1
0
        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 + "\".");
        }
示例#2
0
        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];
        }