public WiimotePlayRecord(TrainingSegmentInfo pTrainingSegmentInfo, string p_RecordName, DateTime p_RecordedTime, int p_Score) { ParentRecord = pTrainingSegmentInfo; // ParentRecordID = p_ReferenceRecord.RecordID; RecordedTime = p_RecordedTime; Score = p_Score; RecordName = p_RecordName; TrainingSegmentInfo.HighestPlayIndex++; }
private void RepeatCommand_Click(object sender, EventArgs e) { mCurrentVideoIndex = mCurrentVideoIndex - 1; VideoUserOptions lOptions = new VideoUserOptions(); mCurrentTrainingSegment = mVideoInfoList[mCurrentVideoIndex]; playTrainingVideo(lOptions); }
private void continueTraining(VideoUserOptions pOptions) { try { if (!mTrainingStarted) initializeTraining(); if (mCurrentVideoIndex == mVideoInfoList.Count) return; mCurrentTrainingSegment = mVideoInfoList[mCurrentVideoIndex]; playTrainingVideo(pOptions); } catch (WiimoteConnectionException ex) { throw ex; } }
public void initializeTraining() { try { // mWiimotes.connectWiimotes(Configuration.getConfiguration().MaxWiimoteConnectionTries); initializeFeedback(); loadTrainingVideoInfoData(); if (mVideoInfoList.Count == 0) return; // throw exception here mTrainingStarted = true; mCurrentTrainingSegment = mVideoInfoList[0]; this.RepeatCommand.Enabled = true; } catch (WiimoteConnectionException ex) { Console.WriteLine(ex); throw ex; } }
public WiimoteReferenceRecord(TrainingSegmentInfo pSegmentInfo, string p_ReferenceRecordName, string p_VideoPath) { ParentTrainingSegmentInfo = pSegmentInfo; RecordName = p_ReferenceRecordName; VideoPath = p_VideoPath; WiimoteRecordingDelay = 0; WiimoteDataStore wimoteReferenceDataStore = WiimoteDataStore.getWiimoteDataStore(); RecordID = TrainingSegmentInfo.HighestReferenceIndex + 1; TrainingSegmentInfo.HighestReferenceIndex++; ParentRecord = pSegmentInfo; }
public TrainingSegmentInfo addTrainingSegmentInfoRecord(string pTrainingSegmentInfoName) { TrainingSegmentInfo record = new TrainingSegmentInfo(pTrainingSegmentInfoName); trainingSegmentInfoRecordList.Add(record); return record; }