public PresenterUserSettingsRightAdvanced
        (
            IViewUserSettingsRightAdvanced view,
            IViewDialog dialog,
            ISettingsService settings,
            IViewUserSettingsRightAutoShownTabs rightAutoShownTabs,
            ISettingsServiceXmlSerialization settingsServiceXmlSerialization,
            IViewUserSettingsRightManuallyShownTabs rightManuallyShownTabs,
            Validate validate,
            FileData fileData
        )
        {
            _view               = view;
            _dialog             = dialog;
            _settings           = settings;
            _rightAutoShownTabs = rightAutoShownTabs;
            _settingsServiceXmlSerialization = settingsServiceXmlSerialization;
            _rightManuallyShownTabs          = rightManuallyShownTabs;
            _rightManuallyShownTabs          = rightManuallyShownTabs;
            _validate = validate;
            _fileData = fileData;

            //subscribe to events
            if (view != null)
            {
                view.Load += View_Load;
            }
        }
示例#2
0
        public PresenterUserSettingsLeftMenu
        (
            IViewUserSettingsMenuLeft viewUserSettingsMenuLeft,
            IViewUserSettings viewUserSettings,
            IViewUserSettingsRightAppearance appearance,
            IViewUserSettingsRightAutoShownTabs rules,
            IViewUserSettingsRightManuallyShownTabs manuallyShownTabs,
            IViewUserSettingsRightAdvanced viewUserSettingsRightAdvanced,
            IViewUserSettingsRightHelp userSettingsRightHelp
        )
        {
            _viewUserSettingsMenuLeft = viewUserSettingsMenuLeft;
            _viewUserSettings         = viewUserSettings;
            _appearance                    = (UserControl)appearance;
            _rules                         = (UserControl)rules;
            _manuallyShownTabs             = manuallyShownTabs;
            _viewUserSettingsRightAdvanced = viewUserSettingsRightAdvanced;
            _userSettingsRightHelp         = userSettingsRightHelp;

            //subscribe to events
            if (_viewUserSettings != null)
            {
                _viewUserSettings.Load += OnLoadedViewUserSettings;
            }
            if (_viewUserSettingsMenuLeft == null)
            {
                return;
            }
            _viewUserSettingsMenuLeft.MenuDrawNode   += OnMenuDrawNode;
            _viewUserSettingsMenuLeft.MouseClickNode += OnMouseClickNode;
        }
示例#3
0
        public Validate
        (
            IViewUserSettingsRightManuallyShownTabs manuallyShownTabs,
            IViewUserSettingsRightAutoShownTabs autoShownTabs,
            ISettingsServiceXmlSerialization settingsServiceXmlSerialization
        )
        {
            _viewManual = manuallyShownTabs;
            _viewAuto   = autoShownTabs;
            _settingsServiceXmlSerialization = settingsServiceXmlSerialization;

            _settings = new SettingsService();
            _dialog   = new ViewDialog();
            _dialog.ClickOkMouseButton     += Dialog_ClickOkMouseButton;
            _dialog.ClickCancelMouseButton += Dialog_ClickCancelMouseButton;
            SettingsFiles();
            DataFilesUserHasAdded();
            DataFilesIncludedFromStart();
        }
        public PresenterUserSettingsRightAutoShownTabs
        (
            IViewUserSettingsRightAutoShownTabs viewRules,
            IViewDialog dialog,
            IViewUserSettings viewUserSettings,
            IViewUserSettingsButtonsDown viewUserSettingsButtonsDown,
            ISettingsServiceXmlSerialization settingsServiceXmlSerialization,
            IViewMainSplContPanelUpTabs viewMainSplContPanelUpTabs
        )
        {
            _view                            = viewRules;
            _dialog                          = dialog;
            _viewUserSettings                = viewUserSettings;
            _viewUserSettingsButtonsDown     = viewUserSettingsButtonsDown;
            _settingsServiceXmlSerialization = settingsServiceXmlSerialization;
            _viewMainSplContPanelUpTabs      = viewMainSplContPanelUpTabs;

            //subscribe to events
            if (_view == null)
            {
                return;
            }
            _view.Load += ViewRules_Load;
            _view.ListLeftSimulatedTextChanged += ViewRules_ListLeftSimulatedTextChanged;
            _view.ItemsListTextChanged         += ViewRules_ItemsListTextChanged;
            _view.RegExStringTextChanged       += ViewRules_RegExStringTextChanged;
            _view.RuleNamesSelectionChanged    += ViewRules_RuleNamesSelectionChanged;
            _view.ClickNewButton    += ViewRules_ClickNewButton;
            _view.ClickDeleteButton += ViewRules_ClickDeleteButton;
            _view.ClickRenameButton += ViewRules_ClickRenameButton;
            if (_dialog != null)
            {
                _dialog.ClickCancelMouseButton += Dialog_ClickCancelMouseButton;
                _dialog.ClickOkMouseButton     += Dialog_ClickOkMouseButton;
            }

            _view.EnabledChangedView += View_EnabledChanged;
        }