Beispiel #1
0
        private void GesturesLoad_Click(object sender, EventArgs e)
        {
            _gestureForm = new GesturesForm(this._gestureForm, Enums.GestureFormOption.Load, 0);
            _gestureForm.Show();

            OpenFileDialog dlg = new OpenFileDialog();
            dlg.Filter = "Gestures (*.xml)|*.xml";
            dlg.Title = "Load Gestures";
            dlg.Multiselect = true;
            dlg.RestoreDirectory = false;

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                for (int i = 0; i < dlg.FileNames.Length; i++)
                {
                    string name = dlg.FileNames[i];
                    _gestureForm.LoadGesture(name);
                }
            }
        }
Beispiel #2
0
 private void BuildSkeleton_Click(object sender, EventArgs e)
 {
     _gestureForm = new GesturesForm(this._gestureForm, Enums.GestureFormOption.RecordSkeletonBuild, 0);
     _gestureForm.Show();
 }
Beispiel #3
0
 private void UnistrokeProtractor_Recognizer(object sender, EventArgs e)
 {
     _gestureForm = new GesturesForm(this._gestureForm,
                                     Enums.GestureFormOption.Recognize,
                                     GestureRecognition.UnistrokeRecognizer.Logic.Enums.RecognizeMode.Unistroke_Protractor);
     _gestureForm.Show();
 }
Beispiel #4
0
 private void UnistrokeRecognizer_Click(object sender, EventArgs e)
 {
     _gestureForm = new GesturesForm(this._gestureForm,
                                     Enums.GestureFormOption.Recognize,
                                     GestureRecognition.UnistrokeRecognizer.Logic.Enums.RecognizeMode.Unistroke_DollarOne);
     _gestureForm.Show();
 }
Beispiel #5
0
 private void squarePatternRecognizerToolStripMenuItem_Click(object sender, EventArgs e)
 {
     _gestureForm = new GesturesForm(this._gestureForm, Enums.GestureFormOption.SquareRecognizer, 0);
     _gestureForm.Show();
 }