protected bool Equals(CharacterSlot other) { return Equals(OChar, other.OChar); }
private void LoadCharacterData(string File) { CurrentAccount = Account.DeserializeFromXML(File); AllItems = new List<TrackedItem>(CurrentAccount.StashedItems); foreach (var i in CurrentAccount.Characters) { CharacterSlot cs = new CharacterSlot(i); AllItems.AddRange(i.InventoryItems); AllItems.AddRange(i.EquippedItems); cs.OnMouseClicked += CharacterSlot_MouseClick; flowlayout_Characters.Controls.Add(cs); } AllItems = AllItems.OrderBy(i => i.Name).ToList(); label1.Text = "Total Items: " + AllItems.Count.ToString(); }
protected bool Equals(CharacterSlot other) { return(Equals(OChar, other.OChar)); }