예제 #1
0
        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();
                });
            }
        }
예제 #2
0
		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();
				});
			}
		}