// Verifies whether there is a subscriber to the OnIncorrectInput
    // If there is any tells them to show that the input was incorrect
    private void tellAboutIncorrectInput(string inputNote)
    {
        GiveFeedback handler = OnIncorrectInput;

        if (handler != null)
        {
            handler(inputNote);
        }
    }
    // Verifies whether there is a subscriber to the OnProcessedInput
    // If there is any tells them to show the correct answer
    private void tellAboutProcessedInput()
    {
        GiveFeedback handler = OnProcessedInput;

        if (handler != null)
        {
            handler(expectedNote);
        }
    }
Exemplo n.º 3
0
 private void Edit_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     GiveFeedback?.Invoke(sender, e);
 }
 public void GiveFeedback(GiveFeedback command)
 {
     _EventsService.GiveFeedback(command);
 }
 public void GiveFeedback(GiveFeedback command)
 {
     SetSource(command);
     Mongo.Events.Insert(command);
 }