Ejemplo n.º 1
0
 private void btnReset_Click(object sender, EventArgs e)
 {
     m_ValidationPoints.Clear();
     m_TrainingPoints.Clear();
     m_TemplatePoints.Clear();
     lblTrainingCounter.Text = "0";
     lblResult.Visible       = false;
     btnStartStop.Text       = "Start training";
     m_PredictionModule      = null;
     shapePB.Invalidate();
     lblResult.Invalidate();
     lblTrainingCounter.Invalidate();
 }
Ejemplo n.º 2
0
        private void btnStartStop_Click(object sender, EventArgs e)
        {
            btnReset.Visible = true;

            switch (btnStartStop.Text)
            {
            case "Start training":
                m_PredictionModule      = new MouseGestureRecognizer();
                btnStartStop.Text       = "Check results";
                lblTrainingCounter.Text = "0";
                break;

            case "Check results":
                btnStartStop.Text = "Continue training";
                break;

            case "Continue training":
                btnStartStop.Text = "Check results";
                break;
            }
        }