コード例 #1
0
ファイル: Form1.cs プロジェクト: abdullah786/LearningApi
 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();
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: abdullah786/LearningApi
        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;
            }
        }