示例#1
0
 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();
 }
示例#2
0
 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();
 }