private void btnCheck_Click(object sender, EventArgs e) { frmHighScores frmHighScore2 = new frmHighScores(); Hide(); frmHighScore2.ShowDialog(); }
protected override void LoadContent() { frmHighScores = new frmHighScores(); spriteBatch = new SpriteBatch(GraphicsDevice); spriteFont = Content.Load <SpriteFont>("GameFont"); spriteFont.LineSpacing = 20; scrStart = new Screen_Basic(this, spriteBatch, Content.Load <Texture2D>("Graphics/Backgrounds/Start"), Menu.MenuItems(new MENU_OPTIONS())); Components.Add(scrStart); scrStart.Hide(); scrInstructions = new scrPopup(this, spriteBatch, Content.Load <Texture2D>("Graphics/Backgrounds/Instructions"), scrStart, 500, 500); Components.Add(scrInstructions); scrInstructions.Hide(); scrActive = scrStart; scrActive.Show(); }