コード例 #1
0
 protected override void Initialize()
 {
     base.Initialize();
     _options = new Options(UserRegistryRoot, "EventHandlerNaming");
     _options.Load();
     _designerHandler   = new DesignerCreationListener((IDesignerEventService)GetService(typeof(IDesignerEventService)), _options);
     _codeWindowHandler = new CodeWindowHandler((DTE2)GetGlobalService(typeof(EnvDTE.DTE)), new PatternNameProvider(_options), _options);
     InitializeMenuCommands();
 }
コード例 #2
0
 protected override void Initialize()
 {
     base.Initialize();
     _options = new Options(UserRegistryRoot,  "EventHandlerNaming");
     _options.Load();
     _designerHandler = new DesignerCreationListener((IDesignerEventService)GetService(typeof(IDesignerEventService)), _options);
     _codeWindowHandler = new CodeWindowHandler((DTE2) GetGlobalService(typeof(EnvDTE.DTE)), new PatternNameProvider(_options), _options);
     InitializeMenuCommands();
 }