コード例 #1
0
        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;
        }
コード例 #2
0
 public ConnectionFormController(
     IEncryptedStorage storage,
     ILogger logger,
     IMessageBoxService messageBoxService,
     IStandardDialogService standardDialogService,
     IEventAggregator eventAggregator = null)
     : base(logger, messageBoxService, standardDialogService, eventAggregator)
 {
     this.storage = storage;
 }
コード例 #3
0
        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);
        }
コード例 #4
0
        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;
        }