Exemple #1
0
        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();
 }
Exemple #3
0
 public ChooseSingleOrMulty(FormGame formgame)
 {
     InitializeComponent();
 }
Exemple #4
0
 public COMAI(Table table, FormGame formGame, GraphicCell[,] cells)
 {
     this.table    = table;
     this.formGame = formGame;
     this.cells    = cells;
 }