public void SetParent(MainForm parentForm) { this.Owner = parentForm; }
public void SetParent(MainForm parentForm, List<FloatingListForm> floatingForms) { mainOwner = parentForm; this.Owner = parentForm; logForm.Owner = this; this.floatingForms = floatingForms; Point bp = parentForm.GetBindPoint(true); parentForm.PreMove += new MainForm.PreMoveEvent(parentForm_PreMove); bp.Y = bp.Y + parentForm.Height; this.SetDesktopLocation(bp.X, bp.Y); shiftX = parentForm.Location.X - bp.X; shiftY = parentForm.Location.Y - bp.Y; }