public SlideShowController(Application application, SpeechEngine speech, GestureEngine gesture, CueStore store) { pptApp = application; pptApp.SlideShowBegin += OnSlideShowBegin; pptApp.SlideShowEnd += OnSlideShowEnd; pptApp.SlideShowNextSlide += OnSlideShowNextSlide; detectors = new List<ISlideShowCommandDetector>(); detectors.Add(new SpeechCommandDetector(this, speech, store)); detectors.Add(new GestureCommandDetector(this, gesture)); slideShowView = null; slideId = 0; step = 0; }
private void ThisAddIn_Startup(object sender, System.EventArgs e) { // TODO: move this into OnPresentationOpened to properly support multiple opened documents / cuestores SpeechEngineInstance = new SpeechEngine(); GestureEngineInstance = new GestureEngine(); CueStoreInstance = CueStore.Deserialize(); SlideShowController SlideShowControllerInstance = new SlideShowController(Application, SpeechEngineInstance, GestureEngineInstance, CueStoreInstance); try { SpeechEngineInstance.Initialize(); } catch { ErrorHandler.ShowKinectNotFoundDialog(); } }
public SpeechCommandDetector(SlideShowController controller, SpeechEngine engine, CueStore store) { slideShowController = controller; speechEngine = engine; cueStore = store; }