Пример #1
0
 private void SetupView(IInventoryView inventoryView)
 {
     inventoryView.Initialize();
     inventoryView.Display(_itemsRepository.Collection.Values.ToList());
     inventoryView.InventoryClosed += HideInventory;
     inventoryView.Selected        += OnItemSelected;
     inventoryView.Deselected      += OnItemDeselected;
 }
Пример #2
0
 public void ShowInventory(Action hideAction)
 {
     _hideAction = hideAction;
     _inventoryView.Display(_itemsRepository.Collection.Values.ToList());
     _inventoryView.Show();
 }
Пример #3
0
 public void ShowInventory()
 {
     _inventoryView.Show();
     _inventoryView.Display(_inventoryModel.GetEquippedItems());
 }