private void pictureBox1_Click(object sender, EventArgs e) { G0RandomGame form = new G0RandomGame(p1, p2); this.Hide(); form.ShowDialog(); this.Close(); }
private void timer1_Tick(object sender, EventArgs e) { this.Hide(); this.theParent.Show(); this.theParent.Focus(); G0RandomGame ae = (G0RandomGame)this.theParent; if (ae.counter < 5) { ae.tmrRandom.Enabled = true; ae._start = DateTime.UtcNow; ae.counter++; ae.p1.Score += pointP1; ae.p2.Score += pointP2; } this.Dispose(); }
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"); } }