private void HandleSettingsFlyoutClosedMessage(SettingsFlyoutClosed msg) { DispatcherHelper.CheckBeginInvokeOnUI( async() => { IsBusy = true; Datas = await _demosService.GetRankDateChartDataAsync(); IsBusy = false; }); }
public AccountStatsRankViewModel(IDemosService demoService) { _demosService = demoService; if (IsInDesignMode) { DispatcherHelper.Initialize(); NotificationMessage = "Loading..."; IsBusy = true; Application.Current.Dispatcher.Invoke(async() => { Datas = await _demosService.GetRankDateChartDataAsync(); }); } }
public AccountStatsRankViewModel(IDemosService demoService) { _demosService = demoService; if (IsInDesignMode) { DispatcherHelper.Initialize(); NotificationMessage = "Loading..."; IsBusy = true; Application.Current.Dispatcher.Invoke(async () => { Datas = await _demosService.GetRankDateChartDataAsync(); }); } }