private void DetermineAnswer(int chromaticChange) { Tone tone = ToneGraph.GetBasicToneByIndex(Convert.ToInt32(this.ToneClicked.Value)); Tone toneWithChromaticChange = ToneGraph.GetToneByReferenceToneAndChromaticChange(tone, chromaticChange); if (toneWithChromaticChange.Name.Equals(this.ActualInterval.Tone2.Name)) { this.SetQuestionAsAnswered(); } }
private void DetermineAnswer(int chromaticChange) { int actualNoteIndex = Convert.ToInt32(this.ActualNoteIndex.Value); Tone toneAux = ToneGraph.GetBasicToneByIndex(Convert.ToInt32(this.ToneClicked.Value)); Tone toneClicked = ToneGraph.GetToneByReferenceToneAndChromaticChange(toneAux, chromaticChange); Tone nextTone = this.GetNextToneToDisplay(); if (toneClicked.Name.Equals(nextTone.Name)) { this.DisplayNextNote(); } }