Beispiel #1
0
 public IProgressInfo DisplayProgress(Action responsive)
 {
     var viewmodel =
         VisualMainWindow.ApplicationProxy.ServicePool.GetDefaultSingelService<IApplicationContainer>().ViewModel
         as MainWindowViewModel;
     viewmodel.InfoTrayButtonAction = responsive;
     return Info = new ProgressInfo(updateProgress, onend);
 }
 public IProgressInfo DisplayProgress()
 {
     ProgressInfo =
         new ProgressInfo(
             () =>
             System.Windows.Application.Current.Dispatcher.Invoke(
                 new Action(() => SendPropertyChanged(() => Message))),
             () => ProgressInfo = null);
     return ProgressInfo;
 }