public void addStepDetail(StepFunctionalMovement step) { if (step.step != (this.countStep - 1)) { StepFunctionalMovement _sfm = this.stepsByMovement[this.serieMF - 1][this.repetitions][step.step + 1]; if (_sfm != null) { this.stepsByMovement[this.serieMF - 1][this.repetitions][step.step + 1] = null; } } this.stepsByMovement[this.serieMF - 1][this.repetitions][step.step] = step; if (step.step == (this.countStep - 1) && isCorrectMF()) { isNewFunctionalMovement = true; /*this.createStepsDetail(); * this.Repetitions = this.Repetitions + 1;*/ } }
private void checkData(int step) { if (step > -1) { try { double time = this.gestureResultView.TimeMF; double accumulateTime = this.gestureResultView.TimeTotalMF; List <DetailsOfStepFunctionalMovement> details = new List <DetailsOfStepFunctionalMovement>(); foreach (KeyValuePair <JointType, DetailsOfStepFunctionalMovement> mean in this.kinectBodyView.joinsAnalize) { DetailsOfStepFunctionalMovement detail = mean.Value.clone(); details.Add(detail); } this.kinectBodyView.clearJoins(); StepFunctionalMovement sfm = StepFunctionalMovement.createStep(details, step, this.headerView.Trainer.functionalMovement._ID, time, accumulateTime, this.gestureResultView.Progress); this.gestureResultView.addStepDetail(sfm); } catch (Exception) { } } }