Ejemplo n.º 1
0
 protected override sealed void OnResize(EventArgs e)
 {
     base.OnResize(e);
     if (view != null)
     {
         view.OnResize(e, Width, Height);
     }
 }
Ejemplo n.º 2
0
 protected internal override void OnResize(EventArgs e, int width, int height)
 {
     widths  = null;
     heights = null;
     xpos    = null;
     ypos    = null;
     InitSizes(width, height);
     for (int row = 0; row < RowCount; row++)
     {
         for (int col = 0; col < ColumnCount; col++)
         {
             Tuple <int, int> key = new Tuple <int, int>(row, col);
             if (components.ContainsKey(key))
             {
                 BasicView v = components[key];
                 v.OnResize(e, widths[col], heights[row]);
             }
         }
     }
 }