protected void OnTrainAnswerAutoCheck(AutoCheckEventArgs args) { if (TrainAnswerAutoCheck != null) { TrainAnswerAutoCheck(this, args); } }
private void PerformAutoCheckAnswer() { this.status = MachineStatus.AutoCheckingAnswer; AutoCheckEventArgs args = new AutoCheckEventArgs(); OnTrainAnswerAutoCheck(args); CheckAnswer(true, args.UserAnswer); }