Exemplo n.º 1
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();
            }
        }