示例#1
0
        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);
            }
        }
示例#2
0
 private void _init()
 {
     _viewmodel.Zones = _zoneRepo.GetAllZones();
 }
示例#3
0
 public async Task <IEnumerable <ZoneViewModel> > GetAllZones(string lang)
 {
     return(await _ZoneRepo.GetAllZones(lang));
 }