コード例 #1
0
        private void BusyManagerOnStatusChanged(object sender, IBusyStatusChange e)
        {
            if (e.Type != OperationType.EventsLoading)
            {
                return;
            }

            this.Progress.Progress  = e.Progress;
            this.Progress.Message   = e.Message;
            this.Progress.IsLoading = e.IsBusy;
        }
コード例 #2
0
 private void OnBusyManagerStatusChanged(object sender, IBusyStatusChange e)
 {
     if (Application.Current == null)
     {
         this.IsEnabled = !e.IsBusy;
     }
     else if (Application.Current.CheckAccess())
     {
         this.IsEnabled = !e.IsBusy;
     }
     else
     {
         Application.Current.Dispatcher.Invoke(() => this.IsEnabled = !e.IsBusy);
     }
 }