Ejemplo n.º 1
0
 private void LoadSquare6Layout()
 {
     bounds.Add(0, Dpi.ScaleRectangle(new Rectangle(1, 2, 119, 105)));
     bounds.Add(1, Dpi.ScaleRectangle(new Rectangle(121, 2, 119, 105)));
     bounds.Add(2, Dpi.ScaleRectangle(new Rectangle(1, 108, 119, 105)));
     bounds.Add(3, Dpi.ScaleRectangle(new Rectangle(121, 108, 119, 105)));
     bounds.Add(4, Dpi.ScaleRectangle(new Rectangle(1, 214, 119, 105)));
     bounds.Add(5, Dpi.ScaleRectangle(new Rectangle(121, 214, 119, 105)));
 }
Ejemplo n.º 2
0
        private void LoadDefaultLayout()
        {
            int idx = 0, y = 43;

            for (var row = 0; row < 3; row++)
            {
                var x = 9;
                for (var col = 0; col < 3; col++)
                {
                    bounds.Add(idx++, Dpi.ScaleRectangle(new Rectangle(x, y, 70, 70)));
                    x += 76;
                }
                y += 76;
            }
        }