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; }
public ApplicationController(Lazy <ShellViewModel> shellViewModelLazy, Lazy <SettingsViewModel> settingsViewModelLazy, Lazy <AboutViewModel> aboutViewModelLazy, Lazy <HelpViewModel> helpViewModelLazy, Lazy <LogViewModel> logViewModelLazy, Lazy <ShellService> shellServiceLazy, CompositionContainer compositionContainer, Lazy <IAccountAuthenticationService> accountAuthenticationServiceLazy, IShellController shellController, Lazy <SystemTrayNotifierViewModel> lazySystemTrayNotifierViewModel, IGuiInteractionService guiInteractionService, ILogController logController) { //ViewModels _shellViewModel = shellViewModelLazy.Value; _settingsViewModel = settingsViewModelLazy.Value; _aboutViewModel = aboutViewModelLazy.Value; _helpViewModel = helpViewModelLazy.Value; _logViewModel = logViewModelLazy.Value; _systemTrayNotifierViewModel = lazySystemTrayNotifierViewModel.Value; //Commands _shellViewModel.Closing += ShellViewModelClosing; _exitCommand = new DelegateCommand(Close); //Services AccountAuthenticationService = accountAuthenticationServiceLazy.Value; _shellService = shellServiceLazy.Value; _shellService.ShellView = _shellViewModel.View; _shellService.SettingsView = _settingsViewModel.View; _shellService.AboutView = _aboutViewModel.View; _shellService.HelpView = _helpViewModel.View; _shellService.LogView = _logViewModel.View; _shellController = shellController; _guiInteractionService = guiInteractionService; _logController = logController; if (_shellViewModel.IsSettingsVisible) { _settingsViewModel.Load(); } }
public ApplicationController(Lazy<ShellViewModel> shellViewModelLazy, Lazy<SettingsViewModel> settingsViewModelLazy, Lazy<AboutViewModel> aboutViewModelLazy, Lazy<HelpViewModel> helpViewModelLazy, Lazy<LogViewModel> logViewModelLazy, Lazy<ShellService> shellServiceLazy, CompositionContainer compositionContainer, Lazy<IAccountAuthenticationService> accountAuthenticationServiceLazy, IShellController shellController, Lazy<SystemTrayNotifierViewModel> lazySystemTrayNotifierViewModel, IGuiInteractionService guiInteractionService, ILogController logController) { //ViewModels _shellViewModel = shellViewModelLazy.Value; _settingsViewModel = settingsViewModelLazy.Value; _aboutViewModel = aboutViewModelLazy.Value; _helpViewModel = helpViewModelLazy.Value; _logViewModel = logViewModelLazy.Value; _systemTrayNotifierViewModel = lazySystemTrayNotifierViewModel.Value; //Commands _shellViewModel.Closing += ShellViewModelClosing; _exitCommand = new DelegateCommand(Close); //Services AccountAuthenticationService = accountAuthenticationServiceLazy.Value; _shellService = shellServiceLazy.Value; _shellService.ShellView = _shellViewModel.View; _shellService.SettingsView = _settingsViewModel.View; _shellService.AboutView = _aboutViewModel.View; _shellService.HelpView = _helpViewModel.View; _shellService.LogView = _logViewModel.View; _shellController = shellController; _guiInteractionService = guiInteractionService; _logController = logController; if (_shellViewModel.IsSettingsVisible) { _settingsViewModel.Load(); } }
public SystemTrayNotifierViewModel(ISystemTrayNotifierView view, IGuiInteractionService guiInteractionService) : base(view) { GuiInteractionService = guiInteractionService; }