private void btnAddKeyPoint_Click(object sender, RoutedEventArgs e) { for (int i = 0; i < checkbox.Count(); i++) { if (checkbox[i].IsChecked == true) { studentList[i].Point += getKeyPoint(); Main.txtBoxStudentPointList[i].Text = studentList[i].Point.ToString(); } } TrueKeySound.Stop(); TrueKeySound.Play(); isFinished = true; //mute the ShowHintSound EraseContent(); HideBell(); //replica update POINT server.SendTSInfo(currentRound, studentList); }
private void TrueKeySound_MediaEnded(object sender, RoutedEventArgs e) { TrueKeySound.Stop(); }