public ChangePasswordFormController( [NotNull] IUserSettingsManager userSettingsManager, [NotNull] IEncryptedStorage encryptedStorage, [NotNull] ExceptionHandler exceptionHandler, ILogger logger, IMessageBoxService messageBoxService, IStandardDialogService standardDialogService, IEventAggregator eventAggregator = null) : base(logger, messageBoxService, standardDialogService, eventAggregator) { if (userSettingsManager == null) { throw new ArgumentNullException("userSettingsManager"); } if (encryptedStorage == null) { throw new ArgumentNullException("encryptedStorage"); } if (exceptionHandler == null) { throw new ArgumentNullException("exceptionHandler"); } this.userSettingsManager = userSettingsManager; this.encryptedStorage = encryptedStorage; this.exceptionHandler = exceptionHandler; }
public ConnectionFormController( IEncryptedStorage storage, ILogger logger, IMessageBoxService messageBoxService, IStandardDialogService standardDialogService, IEventAggregator eventAggregator = null) : base(logger, messageBoxService, standardDialogService, eventAggregator) { this.storage = storage; }
public MainFormController( IEncryptedStorage storage, [NotNull] ConnectionManager connectionManager, [NotNull] ApplicationLauncher appLauncher, [NotNull] IWindowManager windowManager, [NotNull] ExceptionHandler exceptionHandler, ILogger logger, IMessageBoxService messageBoxService, IStandardDialogService standardDialogService, IEventAggregator eventAggregator = null) : base(logger, messageBoxService, standardDialogService, eventAggregator) { if (storage == null) { throw new ArgumentNullException("storage"); } if (connectionManager == null) { throw new ArgumentNullException("connectionManager"); } if (appLauncher == null) { throw new ArgumentNullException("appLauncher"); } if (windowManager == null) { throw new ArgumentNullException("windowManager"); } if (exceptionHandler == null) { throw new ArgumentNullException("exceptionHandler"); } this.storage = storage; this.connectionManager = connectionManager; this.appLauncher = appLauncher; this.windowManager = windowManager; this.exceptionHandler = exceptionHandler; connectionManager.AddObserver(this); }
public StorageSelectionFormController( ILogger logger, IMessageBoxService messageBoxService, IStandardDialogService standardDialogService, IUserSettingsManager userSettingsManager, IEncryptedStorage storage) : base(logger, messageBoxService, standardDialogService) { if (userSettingsManager == null) { throw new ArgumentNullException("userSettingsManager"); } if (storage == null) { throw new ArgumentNullException("storage"); } this.userSettingsManager = userSettingsManager; this.storage = storage; }