Beispiel #1
0
        /// <summary>
        /// Applies the settings from the currently loaded options.
        /// </summary>
        private void ApplyOptions(Options options)
        {
            _Options = options;
            _WebSiteExtender.Enabled = options.Enabled;
            _WebSiteExtender.RestrictAccessToFolder(ProtectedFolder, options.Access);
            _WebSiteExtender.ProtectFolder(ProtectedFolder);

            if(!options.Enabled) {
                Status = FeedFilterStrings.StatusDisabled;
            } else {
                Status = FeedFilterStrings.StatusEnabled;
            }
        }
Beispiel #2
0
        /// <summary>
        /// Applies the settings from the currently loaded options.
        /// </summary>
        private void ApplyOptions(Options options)
        {
            _Options = options;
            _WebSiteExtender.Enabled = options.Enabled;
            _WebSiteExtender.RestrictAccessToFolder(ProtectedFolder, options.Access);

            using (new CultureSwitcher()) {
                if (!options.Enabled)
                {
                    Status = DatabaseEditorStrings.StatusDisabled;
                }
                else
                {
                    Status = Strings.Enabled;
                }
            }

            UpdateStatusTotals();
        }
Beispiel #3
0
        /// <summary>
        /// Applies the options.
        /// </summary>
        /// <param name="options"></param>
        private void ApplyOptions(Options options)
        {
            _Options = options;
            _WebSiteExtender.Enabled = _Options.Enabled;
            _WebSiteExtender.RestrictAccessToFolder(ProtectedFolder, _Options.Access);
            _WebAdminViewManager.Enabled = _Options.Enabled;

            using (new CultureSwitcher()) {
                if (!options.Enabled)
                {
                    Status = WebAdminStrings.Disabled;
                }
                else
                {
                    Status = Strings.Enabled;
                }
            }

            OnStatusChanged(EventArgs.Empty);
        }