public DemoStuffsViewModel( DialogService dialogService, ICacheService cacheService, IStuffService stuffService, IMapService mapService) { _dialogService = dialogService; _cacheService = cacheService; _stuffService = stuffService; _mapService = mapService; StuffSelectors.Add(new ComboboxSelector("smokes", "Smokes")); StuffSelectors.Add(new ComboboxSelector("flashbangs", "Flashbangs")); StuffSelectors.Add(new ComboboxSelector("he", "HE Grenades")); StuffSelectors.Add(new ComboboxSelector("molotovs", "Molotovs")); StuffSelectors.Add(new ComboboxSelector("decoys", "Decoys")); CurrentStuffSelector = StuffSelectors[0]; if (IsInDesignMode) { CurrentStuffSelector = StuffSelectors[1]; DispatcherHelper.CheckBeginInvokeOnUI(async() => { await LoadData(); SelectedStuff = Stuffs[10]; }); } }
public DemoStuffsViewModel(DialogService dialogService, ICacheService cacheService, IStuffService stuffService) { _dialogService = dialogService; _cacheService = cacheService; _stuffService = stuffService; StuffSelectors.Add(new ComboboxSelector("smokes", "Smokes")); StuffSelectors.Add(new ComboboxSelector("flashbangs", "Flashbangs")); StuffSelectors.Add(new ComboboxSelector("he", "HE Grenades")); StuffSelectors.Add(new ComboboxSelector("molotovs", "Molotovs")); StuffSelectors.Add(new ComboboxSelector("decoys", "Decoys")); CurrentStuffSelector = StuffSelectors[0]; if (IsInDesignMode) { OverviewLayer = BitmapFactory.New(1024, 1024).FromResource("Resources/images/maps/overview/de_dust2.png"); } }