Exemplo n.º 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;
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
 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);
        }
Exemplo n.º 7
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;
        }