示例#1
0
 public ShellViewModel(IShellView view, IShellService shellService,
                       ISyncService syncStartService,
                       IGuiInteractionService guiInteractionService,
                       Settings settings,
                       SyncSummary syncSummary,
                       IMessageService messageService,
                       ApplicationLogger applicationLogger, IApplicationUpdateService applicationUpdateService,
                       SystemTrayNotifierViewModel systemTrayNotifierViewModel, ChildContentViewFactory childContentViewFactory)
     : base(view)
 {
     _statusBuilder              = new StringBuilder();
     MessageService              = messageService;
     ApplicationLogger           = applicationLogger;
     Logger                      = applicationLogger.GetLogger(GetType());
     ApplicationUpdateService    = applicationUpdateService;
     ShellService                = shellService;
     SyncStartService            = syncStartService;
     GuiInteractionService       = guiInteractionService;
     Settings                    = settings;
     SyncSummary                 = syncSummary;
     SystemTrayNotifierViewModel = systemTrayNotifierViewModel;
     ChildContentViewFactory     = childContentViewFactory;
     view.Closing               += ViewClosing;
     view.Closed                += ViewClosed;
 }
示例#2
0
 private async Task ShowWhatsNew()
 {
     await Task.Run(() =>
     {
         Common.DispatcherHelper.CheckBeginInvokeOnUI(() =>
         {
             var contentView = ChildContentViewFactory.GetChildContentViewModel(ChildViewContentType.WhatsNew);
             ViewCore.ShowChildWindow(contentView.View);
         });
     });
 }
示例#3
0
        private void ShowWhatsNew()
        {
            var contentView = ChildContentViewFactory.GetChildContentViewModel(ChildViewContentType.WhatsNew);

            ViewCore.ShowChildWindow(contentView.View);
        }