コード例 #1
0
        /// <summary>
        /// Handle the demo path provided as argument
        /// If a .dem file is added to the application arguments, it should be triggered to update the current demo displayed
        /// </summary>
        /// <returns></returns>
        private async Task UpdateDemoFromAppArgument()
        {
            if (!string.IsNullOrEmpty(App.DemoFilePath))
            {
                Demo = await _demosService.GetDemoHeaderAsync(App.DemoFilePath);

                if (_cacheService.HasDemoInCache(Demo.Id))
                {
                    Demo = await _cacheService.GetDemoDataFromCache(Demo.Id);
                }
            }
        }
コード例 #2
0
        /// <summary>
        /// Handle the demo path provided as argument
        /// If a .dem file is added to the application arguments, it should be triggered to update the current demo displayed
        /// </summary>
        /// <returns></returns>
        private async Task UpdateDemoFromAppArgument()
        {
            if (!string.IsNullOrEmpty(App.DemoFilePath))
            {
                CurrentDemo = await _demosService.GetDemoHeaderAsync(App.DemoFilePath);

                if (_cacheService.HasDemoInCache(CurrentDemo.Id))
                {
                    _currentDemo = await _cacheService.GetDemoDataFromCache(CurrentDemo.Id);

                    RaisePropertyChanged(() => CurrentDemo);
                }
            }
        }