示例#1
0
 private void MaskCreate()
 {
     int x = 0;
     int y = 0;
     for (int i = 0; i < 25; ++i)
     {
         if (i % 5 == 0 && i != 0)
         {
             x = 0;
             y += 50;
         }
         mask[i] = new Mask_Node(x, y);
         mask[i].Number = i;
         box[i] = new Box(i, x, y, MF);
         x += 50;
     }
 }
示例#2
0
        private void MaskCreate()
        {
            int x = 0;
            int y = 0;

            for (int i = 0; i < 25; ++i)
            {
                if (i % 5 == 0 && i != 0)
                {
                    x  = 0;
                    y += 50;
                }
                mask[i]        = new Mask_Node(x, y);
                mask[i].Number = i;
                box[i]         = new Box(i, x, y, MF);
                x += 50;
            }
        }