Beispiel #1
0
 public QuizGame(mapView map, Courses course, List <Trivia> Questions, int QuestionIndex)
 {
     this.map           = map;
     this.QuestionIndex = QuestionIndex;
     this.questions     = Questions;
     this.course        = course;
     this.isCorrect     = false;
     InitializeComponent();
 }
Beispiel #2
0
        private void Game_Load(object sender, EventArgs e)
        {
            ScoreBoard scoreBoard = new Views.ScoreBoard(student)
            {
                Dock = DockStyle.Fill, TopLevel = false, TopMost = true
            };

            scoreBoard.FormBorderStyle = FormBorderStyle.None;
            mapView map = new mapView(numPlayers, course, questions, scoreBoard)
            {
                Dock = DockStyle.Fill, TopLevel = false, TopMost = true
            };

            map.FormBorderStyle = FormBorderStyle.None;
            this.ScoreBoardPanel.Controls.Add(scoreBoard);
            this.MapPanel.Controls.Add(map);
            scoreBoard.Show();
            map.Show();
        }