Example #1
0
 private void createCell()
 {
     for (int i = 0; i < 10; i++)
     {
         a1.X = 0;
         for (int j = 0; j < 9; j++)
         {
             Cell temp = new Cell(a1, this.imageList1.Images[0]);
             a1.X += 35;
             this.cellList.Add(temp);
         }
         a1.Y += 35;
     }
 }
Example #2
0
 private void PaintCell(Cell a, Graphics gr)
 {
     Rectangle destrec = new Rectangle(a.P.X, a.P.Y, 70, 35);
     gr.DrawImage(a.Image, destrec);
 }