private void ThisAddIn_Startup(object sender, System.EventArgs e) { wire = new Wire(); instance = this; this.Application.SlideShowBegin += onSlideShowBegin; this.Application.SlideShowEnd += onSlideShowEnd; this.Application.SlideSelectionChanged += onSlideChanged; this.Application.SlideShowOnNext += onSlideShowOnNext; this.Application.SlideShowOnPrevious += onSlideShowOnPrevious; this.Application.SlideShowNextBuild += onSlideShowNextBuild; this.Application.SlideShowNextClick += onSlideShowNextClick; this.Application.SlideShowNextSlide += onSlideShowNextSlide; }
private void ThisAddIn_Shutdown(object sender, System.EventArgs e) { if (SSSW != null) { SSSW.Close(); SSSW = null; } ThisAddIn.instance = null; this.wire.Disconnect(); this.wire = null; }