protected virtual void onRaisedVoiceCommand(VoiceCommandEventArgs voiceCommandEventArgs) { //System.Console.WriteLine("Event is raised"); EventHandler <VoiceCommandEventArgs> handler = VoiceCommandEvent; if (handler != null) { handler(this, voiceCommandEventArgs); } }
private void kinect_listener(object sender, VoiceCommandEventArgs e) { this.text_box.AppendText("Kinect says: " + e.debugOutput + "\r"); //Log to screen this.text_box.ScrollToEnd(); //Move cursor in log to ende.ToString }