public void OnRecordingCompletedEvent(object sender, WiimoteRecordingEventArgs e)
        {
            if (!e.RecordingInvoker.Equals(this))
            {
                return;
            }

            this.m_parent.SetTextBeatCounter(e.getNumBeatInBar().ToString());

            if (m_RecordReference)
            {
                m_RecordReference = false;
                this.m_parent.SetTextRecordingStatus(REFERENCE_RECORDING_COMPLETED);
            }

            if (m_RecordPlay)
            {
                m_RecordPlay = false;
                this.m_parent.SetTextRecordingStatus(PLAY_RECORDING_COMPLETED);
            }

            this.m_parent.SetTestTimerButtonState(true);
            this.m_parent.SetRecordingButtonState(false);

            this.m_parent.SetTextBeatCounter("");

            ApplicationSpeech.speakText(ProjectConstants.RECORDING_COMPLETED_TEXT);

            this.m_parent.TestTimer.Enabled = true;

            this.m_parent.SetReferenceRecordingItemDataBindingSource(((WiimoteReferenceRecord)e.ChildRecord.ParentRecord).ReferenceRecordingItems);
        }
 public void OnRecordingBeatEvent(object sender, WiimoteRecordingEventArgs e)
 {
     /*
      * string logMessage = "\r\n# of beats so far = " + p_numBeats + " : # of Bars so far = " + p_numBars + " : Current Beat # In Bar = " + p_numBeatInBar;
      * //            System.Console.WriteLine(logMessage);
      *
      *
      * this.m_parent.AppendText(logMessage);
      *
      * int length = this.m_parent.BeatLog.Text.Length;
      * if (length >= 2000)
      * {
      *  char[] newText = new char[1000];
      *  this.m_parent.BeatLog.Text.CopyTo(1000, newText, 0, 1000);
      *
      *  string newTextString = new String(newText);
      *  this.m_parent.SetTextBeatLog(newTextString);
      * }
      */
     if (e.RecordingInvoker.Equals(this))
     {
         this.m_parent.SetTextBeatCounter(e.getNumBeatInBar().ToString());
     }
 }