private void btnLeaderboards_Click(object sender, EventArgs e) { Leaderboards l = new Leaderboards(); l.FormClosed += new FormClosedEventHandler(window_FormClosed); l.Show(); this.Hide(); }
private void leaderboardsToolStripMenuItem_Click(object sender, EventArgs e) { Leaderboards l = new Leaderboards(); l.FormClosed += new FormClosedEventHandler(leaderboards_FormClosed); l.Show(); this.Hide(); }
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); }
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(); }