private void refresh() { this.Invent = ApplicationState.Model.GetInventory(Character).Where(i => i.inventoryId == "MainInventory").ToList(); inventByLocation = Invent.ToDictionary(item => new Tuple <int, int>(item.X, item.Y)); borderByLocation = new Dictionary <Tuple <int, int>, Border>(); render(); }
private void refresh(string accountName) { this.Invent = ApplicationState.Model.GetInventory(Character, false, accountName).Where(i => i.InventoryId == "MainInventory").ToList(); inventByLocation = Invent.ToDictionary(item => new Tuple <int, int>(item.X, item.Y)); render(); }