Beispiel #1
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 FormsPanel2 AddChild(FormsPanel2 child)
        {
            child.MyMdiContainer = this;
            child.MdiParent      = MdiForm;
            ChildForms.Add(child);

            return(child);
        }
Beispiel #2
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(FormsPanel2 child)
        {
            ActiveMDIWnd = child;

            if (OnChildActivated != null)
            {
                OnChildActivated(this, child);
            }
        }
Beispiel #3
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(FormsPanel2 child)
 {
     ChildForms.Remove(child);
 }