예제 #1
0
        /// <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);
        }
예제 #2
0
 /// <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);
 }
예제 #3
0
        /// <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;
        }