/// <summary> /// Add this Form to our list of children and set the MDI relationship up /// </summary> /// <param name="child">The new kid</param> /// <returns>The new kid</returns> public MdiClientForm AddChild(MdiClientForm child) { child.MyMdiContainer = this; child.MdiParent = MdiForm; ChildForms.Add(child); return(child); }
/// <summary> /// Send the Activated message to the owner of this panel (if they are listening) /// </summary> /// <param name="child">The child that was just activated</param> public void ChildActivated(MdiClientForm child) { ActiveMDIWnd = child; if (OnChildActivated != null) { OnChildActivated(this, child); } }
/// <summary> /// The child closed so remove them from our available form list /// </summary> /// <param name="child">The child that closed</param> public void ChildClosed(MdiClientForm child) { ChildForms.Remove(child); }