public GraphicCell(Point location, int width, int height, FormGame gameForm, Image img, int i, int j) { this.i = i; this.j = j; this.pictureBox = new System.Windows.Forms.PictureBox(); this.pictureBox.BackColor = Color.Green; this.pictureBox.BackgroundImage = img; this.pictureBox.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.pictureBox.Location = new System.Drawing.Point(location.X, location.Y); this.pictureBox.Name = "pictureBox"; this.pictureBox.Size = new System.Drawing.Size(width, height); this.pictureBox.TabIndex = 0; this.pictureBox.TabStop = false; this.pictureBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pictureBox_MouseDown); this.pictureBox.MouseUp += new System.Windows.Forms.MouseEventHandler(this.pictureBox_MouseUp); this.pictureBox.MouseEnter += new System.EventHandler(this.pictureBox_MouseEnter); this.pictureBox.MouseLeave += new System.EventHandler(this.pictureBox_MouseLeave); this.status = Status.Empty; gameForm.Controls.Add(this.pictureBox); formGame = gameForm; }
public FormStartWindows(FormGame formGame) { InitializeComponent(); }
public ChooseSingleOrMulty(FormGame formgame) { InitializeComponent(); }
public COMAI(Table table, FormGame formGame, GraphicCell[,] cells) { this.table = table; this.formGame = formGame; this.cells = cells; }