public EnchantedGem(RUNESET set, string mainStat, RARITY rarity) : base("Enchanted Gem") { Set = set; MainStat = mainStat; Rarity = rarity; Type = REWARDTYPE.ENCHANTEDGEM; }
public GrindStone(RUNESET set, string mainStat, RARITY rarity) : base("Grindstone") { Set = set; MainStat = mainStat; Rarity = rarity; Type = REWARDTYPE.GRINDSTONE; }
private Rune(string grade, RUNESET set, string slot, RARITY rarity, string mainStat, string prefixStat, string subStat1, string subStat2, string subStat3, string subStat4) : base("Rune") { Grade = grade; Set = set; Slot = slot; Rarity = rarity; MainStat = mainStat; PrefixStat = prefixStat; SubStat1 = subStat1; SubStat2 = subStat2; SubStat3 = subStat3; SubStat4 = subStat4; }
private void BtnAddGemStoneFilter_Click(object sender, RoutedEventArgs e) { REWARDTYPE type = (REWARDTYPE)cbType.SelectedItem; RUNESET set = (RUNESET)cbSet.SelectedItem; string mainStat = (string)cbMainStat.SelectedItem; RARITY rarity = (RARITY)cbRarity.SelectedItem; List <GemStone> list = (List <GemStone>)lvGemStoneList.ItemsSource; if (type == REWARDTYPE.GRINDSTONE) { GrindStone grindStone = new GrindStone(set, mainStat, rarity); list.Add(grindStone); } else { EnchantedGem enchantedGem = new EnchantedGem(set, mainStat, rarity); list.Add(enchantedGem); } lvGemStoneList.ItemsSource = null; lvGemStoneList.ItemsSource = list; }
public RuneBuilder Set(string set) { this.set = Enum.TryParse(set, true, out RUNESET runeSet) ? runeSet : RUNESET.UNKNOWN; return(this); }