private void pictureBox2_Click(object sender, EventArgs e) { FormLevel levelThree = new FormLevel(99, 30, 16); levelThree.Text = "Level Three"; levelThree.FormClosed += (sender1, ex1) => this.Close(); levelThree.TextChanged += (sender2, ex2) => { FormLevel.ActiveForm.Hide(); this.Show(); }; levelThree.ShowDialog(); }
private void pictureBox1_Click(object sender, EventArgs e) { FormLevel levelTwo = new FormLevel(40, 16, 16); levelTwo.Text = "Level Two"; levelTwo.FormClosed += (sender1, ex) => this.Close(); levelTwo.TextChanged += (sender2, ex2) => { FormLevel.ActiveForm.Hide(); this.Show(); }; levelTwo.ShowDialog(); }
private void pbLvlOne_Click(object sender, EventArgs e) { FormLevel levelOne = new FormLevel(10, 9, 9); levelOne.Text = "Level One"; levelOne.FormClosed += (sender1, ex1) => this.Close(); levelOne.TextChanged += (sender2, ex2) => { FormLevel.ActiveForm.Hide(); this.Show(); }; levelOne.ShowDialog(); }