public Ball(Form15 form, PictureBox aBallModel, Player leftsidePlayer, Player rightsidePlayer) { this.form = form; ballModel = aBallModel; this.ballPictureBox = new PictureBox(); this.ballPictureBox.Size = aBallModel.Size; this.ballPictureBox.Image = aBallModel.Image; form.Controls.Add(ballPictureBox); this.leftsidePlayer = leftsidePlayer; this.rightsidePlayer = rightsidePlayer; ResetBall(); }
private void pictureBox8_Click(object sender, EventArgs e) { form15 = new Form15(); form15.Show(); }
private void button8_Click(object sender, EventArgs e) { form15 = new Form15(); form15.Show(); }