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; }
private async Task ShowWhatsNew() { await Task.Run(() => { Common.DispatcherHelper.CheckBeginInvokeOnUI(() => { var contentView = ChildContentViewFactory.GetChildContentViewModel(ChildViewContentType.WhatsNew); ViewCore.ShowChildWindow(contentView.View); }); }); }
private void ShowWhatsNew() { var contentView = ChildContentViewFactory.GetChildContentViewModel(ChildViewContentType.WhatsNew); ViewCore.ShowChildWindow(contentView.View); }