public RoundViewModel(DialogService dialogService, IRoundService rounderService, IPlayerService playerService, ICacheService cacheService) { _dialogService = dialogService; _roundService = rounderService; _playerService = playerService; _cacheService = cacheService; if (IsInDesignMode) { Application.Current.Dispatcher.Invoke(async() => { DemosDesignService design = new DemosDesignService(); CurrentDemo = await design.AnalyzeDemo(new Demo(), CancellationToken.None); RoundNumber = 10; await LoadDatas(); }); } }
public RoundViewModel(DialogService dialogService, IRoundService rounderService, IPlayerService playerService, ICacheService cacheService) { _dialogService = dialogService; _roundService = rounderService; _playerService = playerService; _cacheService = cacheService; if (IsInDesignMode) { Application.Current.Dispatcher.Invoke(async () => { DemosDesignService design = new DemosDesignService(); CurrentDemo = await design.AnalyzeDemo(new Demo(), CancellationToken.None); RoundNumber = 10; await LoadDatas(); }); } }