Beispiel #1
0
        protected override void OnActivate(System.ComponentModel.CancelEventArgs e)
        {
            EnsureOptionPageCreated();

            if (s_needsLoadOnNextActivate)
            {
                // Reset the option store to the current state of the options.
                s_optionStore.SetOptions(s_optionService.GetOptions());
                s_optionStore.SetRegisteredOptions(s_optionService.GetRegisteredOptions());

                s_needsLoadOnNextActivate = false;
            }

            pageControl.LoadSettings();
        }
Beispiel #2
0
        protected override void OnActivate(System.ComponentModel.CancelEventArgs e)
        {
            EnsureOptionPageCreated();

            if (s_needsToUpdateOptionStore)
            {
                // Reset the option store to the current state of the options.
                s_optionStore.SetOptions(s_optionService.GetOptions());
                s_optionStore.SetRegisteredOptions(s_optionService.GetRegisteredOptions());

                s_needsToUpdateOptionStore = false;
            }

            if (_needsLoadOnNextActivate)
            {
                // For pages that don't use option bindings we need to load setting changes.
                pageControl.OnLoad();

                _needsLoadOnNextActivate = false;
            }
        }