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 GestureCommandDetector(SlideShowController controller, GestureEngine engine) { slideShowController = controller; gestureEngine = engine; }
public SpeechCommandDetector(SlideShowController controller, SpeechEngine engine, CueStore store) { slideShowController = controller; speechEngine = engine; cueStore = store; }