Example #1
0
 private void ShowMainMenu()
 {
     this.Width             = 337;
     this.Height            = 493;
     HiScoreScreenActivated = false;
     pointsText.Visible     = false;
     nameText.Visible       = false;
     label4.Text            = "o";
     label3.Text            = "l";
     label2.Text            = "o";
     label5.Text            = "u";
     MemoryLabel.Text       = "Memory";
     MemoryLabel.Left       = 38;
     MemoryLabel.Top        = 88;
     label1.Show();
     label2.Show();
     label3.Show();
     label4.Show();
     label5.Show();
     label6.Show();
     MemoryLabel.Show();
     StartButton.Show();
     HiScoresButton.Text = "Hi-Score";
     HiScoresButton.Show();
     QuitButton.Show();
     mainMenuTimer.Start();
     PlayHome();
 }
Example #2
0
        private void ShowHighScores()
        {
            StartButton.Hide();
            HiScoresButton.Text    = "Return";
            HiScoreScreenActivated = true;
            label1.Hide();
            label6.Hide();
            label4.Text      = "H";
            label3.Text      = "i";
            label2.Text      = "g";
            label5.Text      = "h";
            MemoryLabel.Left = 60;
            label2.BringToFront();
            MemoryLabel.SendToBack();
            MemoryLabel.Text = "Scores";

            pointsText.Text = "";
            nameText.Text   = "";

            foreach (HighScore hs in highscorelist)
            {
                pointsText.Text = pointsText.Text + hs.points.ToString() + "\r\n";
                nameText.Text   = nameText.Text + hs.name.ToString().ToUpper() + "\r\n";
            }

            pointsText.Visible = true;
            nameText.Visible   = true;
        }
Example #3
0
 private void HideMainMenu()
 {
     mainMenuTimer.Stop();
     label1.Hide();
     label2.Hide();
     label3.Hide();
     label4.Hide();
     label5.Hide();
     label6.Hide();
     MemoryLabel.Hide();
     StartButton.Hide();
     HiScoresButton.Hide();
     QuitButton.Hide();
 }