Beispiel #1
0
 private void EnsureOptionPageCreated()
 {
     if (_pageControl == null)
     {
         _pageControl = CreateOptionPage(this.Site);
     }
 }
 private void EnsureOptionPageCreated()
 {
     if (_pageControl == null)
     {
         _pageControl = CreateOptionPage(this.Site);
     }
 }
Beispiel #3
0
        private void EnsureOptionPageCreated()
        {
            if (s_optionStore == null)
            {
                var componentModel = (IComponentModel)this.Site.GetService(typeof(SComponentModel));
                var workspace      = componentModel.GetService <VisualStudioWorkspace>();
                s_optionService = workspace.Services.GetService <IOptionService>();
                s_optionStore   = new OptionStore(s_optionService.GetOptions(), s_optionService.GetRegisteredOptions());
            }

            if (pageControl == null)
            {
                // Use a single option store for all option pages so that changes are accumulated
                // together and, in the case of the same option appearing on two pages, the changes
                // are kept in sync.
                pageControl = CreateOptionPage(this.Site, s_optionStore);
            }
        }