private void _refresh() { var zones = _repo.GetAllZones(); _viewmodel.Zones.Clear(); foreach (var zone in zones) { var presenter = new ZoneExpanderPresenter(zone); presenter.EquipChanged += (sender, e) => _inventory.Equip(e); presenter.HighlightChanged += (sender, e) => _inventory.HighLightItemSlot((ItemModel)sender, e); _viewmodel.Zones.Add(presenter); } }
private void _init() { _viewmodel.Zones = _zoneRepo.GetAllZones(); }
public async Task <IEnumerable <ZoneViewModel> > GetAllZones(string lang) { return(await _ZoneRepo.GetAllZones(lang)); }