Beispiel #1
0
 private void OnFloatspaceCellCountChanged(object sender, EventArgs e)
 {
     // When all the cells (and so pages) have been removed we kill ourself
     if (FloatspaceControl.CellCount == 0)
     {
         FloatspaceControl.Dispose();
     }
 }
Beispiel #2
0
        /// <summary>
        /// Loads docking configuration information using a provider xml reader.
        /// </summary>
        /// <param name="xmlReader">Xml reader object.</param>
        /// <param name="pages">Collection of available pages for adding.</param>
        public override void LoadElementFromXml(XmlReader xmlReader, KryptonPageCollection pages)
        {
            // Let base class load the pages into the floatspace
            base.LoadElementFromXml(xmlReader, pages);

            // If loading did not create any pages then kill ourself as not needed
            if (FloatspaceControl.PageCount == 0)
            {
                FloatspaceControl.Dispose();
            }
        }