コード例 #1
0
ファイル: Ball.cs プロジェクト: rattanasuk/ProjectGame
 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();
 }
コード例 #2
0
 private void pictureBox8_Click(object sender, EventArgs e)
 {
     form15 = new Form15();
     form15.Show();
 }
コード例 #3
0
 private void button8_Click(object sender, EventArgs e)
 {
     form15 = new Form15();
     form15.Show();
 }