Example #1
0
        private void btnLeaderboards_Click(object sender, EventArgs e)
        {
            Leaderboards l = new Leaderboards();

            l.FormClosed += new FormClosedEventHandler(window_FormClosed);
            l.Show();
            this.Hide();
        }
Example #2
0
        private void leaderboardsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Leaderboards l = new Leaderboards();

            l.FormClosed += new FormClosedEventHandler(leaderboards_FormClosed);
            l.Show();
            this.Hide();
        }
Example #3
0
 private void Menu_Paint(object sender, PaintEventArgs e)
 {
     Play.Draw(e.Graphics);
     Achiev.Draw(e.Graphics);
     Quit.Draw(e.Graphics);
     Leaderboards.Draw(e.Graphics);
     Easy.Draw(e.Graphics);
     Medium.Draw(e.Graphics);
     Hard.Draw(e.Graphics);
 }
Example #4
0
 private void Menu_MouseMove(object sender, MouseEventArgs e)
 {
     Play.isHit(e.X, e.Y);
     Achiev.isHit(e.X, e.Y);
     Leaderboards.isHit(e.X, e.Y);
     Quit.isHit(e.X, e.Y);
     Easy.isHit(e.X, e.Y);
     Medium.isHit(e.X, e.Y);
     Hard.isHit(e.X, e.Y);
     Invalidate();
 }