예제 #1
0
        private void OnBusyIndicatorMessage(BusyIndicatorMessage busy)
        {
            Action action = () =>
            {
                var viewModel = (MainWindowViewModel)this.DataContext;

                viewModel.Busy.Update(busy);
            };

            this.Dispatcher.Invoke(action);
        }
 public void Update(BusyIndicatorMessage busy)
 {
     this.IsBusy = busy.IsBusy;
     this.BusyContent = string.IsNullOrEmpty(busy.BusyContent) ? "Please Wait..." : busy.BusyContent;
 }