Example #1
0
 protected Point GetTotalAddLocation(Point addLoc, Control control)
 {
     if (control.Parent != null) {
         return GetTotalAddLocation(new Point(addLoc.X + control.Parent.Location.X, addLoc.Y + control.Parent.Location.Y), control.Parent);
     } else {
         return addLoc;
     }
 }
Example #2
0
 public new void AddControl(Control control)
 {
     control.Parent = this;
     control.UpdateControlInfo(this.Children.Count);
     base.AddControl(control);
 }