protected override void Initialize() { var model = this.GetService(typeof(SComponentModel)) as IComponentModel; this.workspace = model.GetService<VisualStudioWorkspace>(); this.dte = this.GetService(typeof(DTE)) as DTE; this.documentEvents = this.dte.Events.DocumentEvents as DocumentEventsClass; this.documentEvents.DocumentSaved += this.OnDocumentSaved; base.Initialize(); }
protected override void Initialize() { var model = this.GetService(typeof(SComponentModel)) as IComponentModel; this.workspace = model.GetService <VisualStudioWorkspace>(); this.dte = this.GetService(typeof(DTE)) as DTE; this.documentEvents = this.dte.Events.DocumentEvents as DocumentEventsClass; this.documentEvents.DocumentSaved += this.OnDocumentSaved; base.Initialize(); }