예제 #1
0
        protected override AbstractOptionPageControl CreateOptionPage(IServiceProvider serviceProvider, OptionStore optionStore)
        {
            if (_globalOptions == null)
            {
                var componentModel = (IComponentModel)serviceProvider.GetService(typeof(SComponentModel));

                _globalOptions    = componentModel.GetService <IGlobalOptionService>();
                _threadingContext = componentModel.GetService <IThreadingContext>();

                var workspace = componentModel.GetService <VisualStudioWorkspace>();
                _workspaceServices = workspace.Services;
            }

            return(new InternalOptionsControl(FunctionIdOptions.GetOptions(), optionStore));
        }
예제 #2
0
 protected override AbstractOptionPageControl CreateOptionPage(IServiceProvider serviceProvider, OptionStore optionStore)
 {
     return(new InternalOptionsControl(FunctionIdOptions.GetOptions(), optionStore));
 }