Пример #1
0
 private void bGame_Click(object sender, RoutedEventArgs e)
 {
     if (candidate.Test_Game.CurrentQuestion == null)
     {
         if (candidate.Test_Orientation.CurrentQuestion == null)
         {
             if (candidate.Info)
             {
                 View.wCandidateResultGame pg = new View.wCandidateResultGame(candidate);
                 pg.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
                 pg.Show();
                 this.Close();
             }
             else
             {
                 View.wCandidateInformations pg = new View.wCandidateInformations(candidate);
                 pg.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
                 pg.Show();
                 this.Close();
             }
         }
         else
         {
             MessageBox.Show("Terminer le test d'orientation pour accéder au tableau des scores.");
         }
     }
     else
     {
         View.wCandidateCurrentQuestion pg = new View.wCandidateCurrentQuestion(candidate, "GAME");
         pg.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
         pg.Show();
         this.Close();
     }
 }
Пример #2
0
 private void ClickOrientation(object sender, RoutedEventArgs e)
 {
     if (candidate.Test_Orientation.CurrentQuestion == null)
     {
         View.wCandidateResultOrientation pg = new View.wCandidateResultOrientation(candidate);
         pg.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
         pg.Show();
         this.Close();
     }
     else
     {
         View.wCandidateCurrentQuestion pg = new View.wCandidateCurrentQuestion(candidate, "ORIENTATION");
         pg.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
         pg.Show();
         this.Close();
     }
 }