Exemplo n.º 1
0
        /// <summary>
        /// Gets the available parts for the selected item given a specified race
        /// </summary>
        private void RaceComboBoxChanged()
        {
            if (selectedCategory != "UI")
            {
                PartComboBox = MTRL.GetMTRLParts(selectedItem, SelectedRace.ID, imcVersion, selectedCategory);
            }
            else
            {
                PartComboBox = new ObservableCollection <ComboBoxInfo>()
                {
                    new ComboBoxInfo()
                    {
                        Name = "-", ID = "-", IsNum = false
                    }
                };
            }

            if (PartComboBox.Count > 1)
            {
                PartEnabled = true;
            }
            else
            {
                PartEnabled = false;
            }

            PartIndex = 0;
        }
        /// <summary>
        /// Gets the available parts for the selected item given a specified race
        /// </summary>
        private void RaceComboBoxChanged()
        {
            PartComboBox = MTRL.GetMTRLParts(selectedItem, SelectedRace.ID, imcVersion, selectedCategory);

            if (PartComboBox.Count > 1)
            {
                PartEnabled = true;
            }
            else
            {
                PartEnabled = false;
            }

            PartIndex = 0;
        }