示例#1
0
 private void StopRecordingData()
 {
     if (StudentIsRecording == true)
     {
         mySpeechManager.Speech.SpeakAsync("Stop recording");
         StudentIsRecording = false;
         RecordButtonName   = "Start Recording";
         SaveStrokes();
         StudentStrokes.Clear();
         RecordButtonColor = new SolidColorBrush(Colors.White);
         SendDebugMessage("Stopped Recording 2");
         return;
     }
 }
示例#2
0
 private void StartRecordingData()
 {
     if (StudentIsRecording == false)
     {
         mySpeechManager.Speech.SpeakAsync("start recording");
         if (ExpertStrokeLoaded == false)
         {
             LoadStrokes();
         }
         StudentStrokes.Clear();
         StudentIsRecording = true;
         RecordButtonName   = "Stop Recording";
         RecordButtonColor  = new SolidColorBrush(Colors.LightGreen);
         return;
     }
 }
示例#3
0
 public void ClearStrokes()
 {
     StudentStrokes.Clear();
     StudentStrokeCount = 0;
 }