private void btnTrainingMove_Click(object sender, EventArgs e) { if (cbxSelectMovement.SelectedIndex == -1) { MessageBox.Show("Selecione um movimento!", "Ops!", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { captureService = new CaptureKinectServiceNew(this, movementKey, this.trainingFile); captureService.StartKinectSensor(); btnTrainingMove.Enabled = false; shouldCancel = false; } }
private void btnStartKinect_Click(object sender, EventArgs e) { shouldCancel = false; captureService = new CaptureKinectServiceNew(this, currentMovement.Key, false); captureService.StartKinectSensor(); }