private void pictureBox1_Click(object sender, EventArgs e) { G0RandomGame form = new G0RandomGame(p1, p2); this.Hide(); form.ShowDialog(); this.Close(); }
private void pictureBox1_Click_1(object sender, EventArgs e) { story++; if (story >= 4) { p.Stop(); G0RandomGame form = new G0RandomGame(p1, p2); //form.theParent = this.theParent; this.Hide(); form.ShowDialog(); this.Close(); } else if (story == 2) { pictureBox2.Visible = true; this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\Intro\\OpStory2.jpg"); } else if (story == 3) { this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\Intro\\OpStory3.jpg"); } }