Пример #1
0
        void CorrectAnswer()
        {
            CorrectFragment correctFragment = new CorrectFragment();
            var             trans           = SupportFragmentManager.BeginTransaction();

            correctFragment.Cancelable = false;
            correctFragment.Show(trans, "Correct");
            correctFragment.NextQuestion += CorrectFragment_NextQuestion;
        }
Пример #2
0
        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;
        }
Пример #3
0
        void CorrectAnswer()
        {
            correctAnswerCount++;
            CorrectFragment correctFragment = new CorrectFragment();
            var             trans1          = SupportFragmentManager.BeginTransaction();

            correctFragment.Cancelable = false;
            correctFragment.Show(trans1, "correct");
            correctFragment.NextQuestion += (sender, e) =>
            {
                NextQuestion();
            };
        }