Beispiel #1
0
        /// <summary>
        /// Activates the smart part within the workspace.
        /// </summary>
        /// <param name="smartPart">The smart part to activate</param>
        protected virtual void OnActivate(Control smartPart)
        {
            DockableControlPane pane = this.PaneFromSmartPart(smartPart);

            pane.Show();
            pane.Activate();
        }
Beispiel #2
0
        /// <summary>
        /// Shows the smart part in the workspace.
        /// </summary>
        /// <param name="smartPart">The smart part to show</param>
        /// <param name="smartPartInfo">The associated smart part info for the smart part being shown.</param>
        protected virtual void OnShow(Control smartPart, UltraDockSmartPartInfo smartPartInfo)
        {
            DockableControlPane pane = this.PaneFromControl(smartPart);

            if (pane == null)
            {
                pane = this.CreatePane(smartPart, smartPartInfo);
            }

            // only force the pane to be visible if its not
            // being created because we're synchronizing with the
            // control panes
            if (this.verifyingSmartParts == false)
            {
                pane.Show();
            }
        }