void CorrectAnswer() { CorrectFragment correctFragment = new CorrectFragment(); var trans = SupportFragmentManager.BeginTransaction(); correctFragment.Cancelable = false; correctFragment.Show(trans, "Correct"); correctFragment.NextQuestion += CorrectFragment_NextQuestion; }
void CorrectAnswer() { CorrectFragment correctFragment = new CorrectFragment(); //Transaction Manager = it is responsible for allowing us to move swiftly from the activity to the dialogue fragment var trans = SupportFragmentManager.BeginTransaction(); //Cancelable if set to true is when you touch any part of the screen, the dialogue fragment will exit. correctFragment.Cancelable = false; correctFragment.Show(trans, "Correct"); correctFragment.NextQuestion += CorrectFragment_NextQuestion; }
void CorrectAnswer() { correctAnswerCount++; CorrectFragment correctFragment = new CorrectFragment(); var trans1 = SupportFragmentManager.BeginTransaction(); correctFragment.Cancelable = false; correctFragment.Show(trans1, "correct"); correctFragment.NextQuestion += (sender, e) => { NextQuestion(); }; }