private void OnBusyIndicatorMessage(BusyIndicatorMessage busy) { Action action = () => { var viewModel = (MainWindowViewModel)this.DataContext; viewModel.Busy.Update(busy); }; this.Dispatcher.Invoke(action); }
private void ChangeIsBusy(BusyIndicatorMessage msg) { IsBusy = msg.IsBusy; }
public void Update(BusyIndicatorMessage busy) { this.IsBusy = busy.IsBusy; this.BusyContent = string.IsNullOrEmpty(busy.BusyContent) ? "Please Wait..." : busy.BusyContent; }