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; }
protected ControllerBase( ILogger logger, IMessageBoxService messageBoxService, IStandardDialogService standardDialogService, IEventAggregator eventAggregator = null) { if (logger == null) { throw new ArgumentNullException("logger"); } if (messageBoxService == null) { throw new ArgumentNullException("messageBoxService"); } if (standardDialogService == null) { throw new ArgumentNullException("standardDialogService"); } this.Logger = logger; this.EventAggregator = eventAggregator; this.MessageBoxService = messageBoxService; this.StandardDialogService = standardDialogService; if (this.EventAggregator != null) { this.EventAggregator.Subscribe(this); } }
public MyFormController( ILogger logger, IMessageBoxService messageBoxService, IStandardDialogService standardDialogService, IEventAggregator eventAggregator = null) : base(logger, messageBoxService, standardDialogService, eventAggregator) { }
public ConnectionFormController( IEncryptedStorage storage, ILogger logger, IMessageBoxService messageBoxService, IStandardDialogService standardDialogService, IEventAggregator eventAggregator = null) : base(logger, messageBoxService, standardDialogService, eventAggregator) { this.storage = storage; }
public ConnectionControlController( ConnectionManager connectionManager, ILogger logger, IMessageBoxService messageBoxService, IStandardDialogService standardDialogService, IEventAggregator eventAggregator = null) : base(logger, messageBoxService, standardDialogService, eventAggregator) { if (connectionManager == null) { throw new ArgumentNullException("connectionManager"); } connectionManager.AddObserver(this); }
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; }