Exemplo n.º 1
0
        private void StartButton_Click(object sender, RoutedEventArgs e)
        {
            TestManager TM = new TestManager();

            UserEvents.OnUserStartedTest(this, new StartedTestEventArgs("Hadi", "Medium"));

            Test t = new Test(TM);
            t.Show();
        }
Exemplo n.º 2
0
        public Test(TestManager tm)
        {
            InitializeComponent();

            this.TM = tm;

            TotalQuestionsLabel.Content = TM.TheTestStats.TotalQuestions;
            EquationLabel.Content = TM.TheTestStats.CurrentEquation.FullEquation;
            OLabel.Visibility = Visibility.Hidden;
            XLabel.Visibility = Visibility.Hidden;

            UserEvents.UserGotQuestionWrong += ShowBigRedX;
            UserEvents.UserGotQuestionRight += ShowBigGreenO;
            UserEvents.UserFinishedTheTest += ShowFinalResults;
        }