private void SetItemLocation(System.Windows.Forms.Control control, ItemLocation thisItem) { control.Top = thisItem.Top; control.Left = thisItem.Left; control.Width = thisItem.Width; control.Height = thisItem.Height; }
private ItemLocation GetLocationParms(System.Windows.Forms.Control control) { ItemLocation thisItem = new ItemLocation(); thisItem.Top = control.Top; thisItem.Left = control.Left; thisItem.Width = control.Width; thisItem.Height = control.Height; return thisItem; }