private void Rb_Mage_Checked(object sender, System.Windows.RoutedEventArgs e) { WeaponClass selectedItemType = GetSelectedWeaponClass(); _itemsToEnhance = WeaponsTable.GetWeaponTable(selectedItemType).Where(x => x.Value.Type == WeaponType.MageWeapon).ToDictionary(x => x.Key, x => x.Value); InitWeapons(); }
private void WeapontypeBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { WeaponClass selectedItemType = GetSelectedWeaponClass(); _itemsToEnhance = WeaponsTable.GetWeaponTable(selectedItemType); InitWeapons(); ResetEnhancementLevel(); }
private void Rb_ShowAll_Checked(object sender, System.Windows.RoutedEventArgs e) { if (_itemsToEnhance != null && _itemsToEnhance.Any()) { WeaponClass selectedItemType = GetSelectedWeaponClass(); _itemsToEnhance = WeaponsTable.GetWeaponTable(selectedItemType); InitWeapons(); } }