BlinkIDDemo.MainPage.mCancelButton_Click C# (CSharp) Method

mCancelButton_Click() private method

Handles "Cancel" button click event by terminating RecognizerControl and shuting down the application.
private mCancelButton_Click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void
        private void mCancelButton_Click(object sender, RoutedEventArgs e)
        {
            // terminate the recognizer
            mRecognizer.TerminateControl();
            // terminate the application
            Application.Current.Terminate();
        }