/// <summary>
        /// Occurs when a page is added to a cell in the workspace.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">A KryptonPageEventArgs containing the event data.</param>
        protected virtual void OnSpaceCellPageInserting(object sender, KryptonPageEventArgs e)
        {
            KryptonDockingManager dockingManager = DockingManager;
            if (dockingManager != null)
            {
                if (e.Item is KryptonStorePage)
                {
                    KryptonDockspace dockspace = sender as KryptonDockspace;
                    if ((dockspace != null) && (dockspace.CellForPage(e.Item) != null))
                    {
                        // Prevent this existing store page from being removed due to the Propogate action below. This can
                        // occur because a cell with pages is added in one go and so insert events are generated for the
                        // existing pages inside the cell to ensure that the event is always fired consistently.
                        IgnoreStorePage = (KryptonStorePage)e.Item;
                    }

                    KryptonDockableWorkspace workspace = sender as KryptonDockableWorkspace;
                    if ((workspace != null) && (workspace.CellForPage(e.Item) != null))
                    {
                        // Prevent this existing store page from being removed due to the Propogate action below. This can
                        // occur because a cell with pages is added in one go and so insert events are generated for the
                        // existing pages inside the cell to ensure that the event is always fired consistently.
                        IgnoreStorePage = (KryptonStorePage)e.Item;
                    }
                }

                // Remove any store page for the unique name of this page being added.
                dockingManager.PropogateAction(ClearStoreAction, new string[] { e.Item.UniqueName });
                IgnoreStorePage = null;
            }
        }
 private void OnDockingAutoHiddenGroupHoverStart(object sender, KryptonPageEventArgs e)
 {
     // Request the sliding panel slide itself into view with the provided page
     KryptonDockingAutoHiddenGroup dockingGroup = (KryptonDockingAutoHiddenGroup)sender;
     _slidePanel.SlideOut(e.Item, dockingGroup.AutoHiddenGroupControl, false);
 }
Exemple #3
0
 /// <summary>
 /// Raises the Selected event.
 /// </summary>
 /// <param name="e">A KryptonPageEventArgs containing event details.</param>
 protected virtual void OnSelected(KryptonPageEventArgs e)
 {
     if (Selected != null)
         Selected(this, e);
 }
Exemple #4
0
 /// <summary>
 /// Raises the TabMouseHoverStart event.
 /// </summary>
 /// <param name="e">An KryptonPageEventArgs containing event details.</param>
 protected virtual void OnTabMouseHoverStart(KryptonPageEventArgs e)
 {
     if (TabMouseHoverStart != null)
         TabMouseHoverStart(this, e);
 }
 private void OnAutoHiddenGroupTabClicked(object sender, KryptonPageEventArgs e)
 {
     // The auto hidden group contains proxy pages and not the real pages
     KryptonAutoHiddenProxyPage proxyPage = (KryptonAutoHiddenProxyPage)e.Item;
     OnPageClicked(new KryptonPageEventArgs(proxyPage.Page, e.Index));
 }
Exemple #6
0
 /// <summary>
 /// Raises athe TabDoubleClicked event.
 /// </summary>
 /// <param name="e">An KryptonPageEventArgs containing the event args.</param>
 protected internal virtual void OnTabDoubleClicked(KryptonPageEventArgs e)
 {
     if (TabDoubleClicked != null)
         TabDoubleClicked(this, e);
 }
 /// <summary>
 /// Raises the PageClicked event.
 /// </summary>
 /// <param name="e">An KryptonPageEventArgs containing the event data.</param>
 protected virtual void OnPageClicked(KryptonPageEventArgs e)
 {
     if (PageClicked != null)
         PageClicked(this, e);
 }
 /// <summary>
 /// Raises the PageHoverStart event.
 /// </summary>
 /// <param name="e">An KryptonPageEventArgs containing the event data.</param>
 protected virtual void OnPageHoverStart(KryptonPageEventArgs e)
 {
     if (PageHoverStart != null)
         PageHoverStart(this, e);
 }
 /// <summary>
 /// Raises the CellPageInserting event.
 /// </summary>
 /// <param name="e">An KryptonPageEventArgs containing the event data.</param>
 protected virtual void OnCellPageInserting(KryptonPageEventArgs e)
 {
     if (CellPageInserting != null)
         CellPageInserting(this, e);
 }
        /// <summary>
        /// Occurs when a page is added to a cell in the workspace.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">A KryptonPageEventArgs containing the event data.</param>
        protected override void OnSpaceCellPageInserting(object sender, KryptonPageEventArgs e)
        {
            // Remove any store page for the unique name of this page being added. In either case of adding a store
            // page or a regular page we want to ensure there does not exist a store page for that same unique name.
            KryptonDockingManager dockingManager = DockingManager;
            if (dockingManager != null)
            {
                if (e.Item is KryptonStorePage)
                {
                    KryptonFloatspace floatspace = sender as KryptonFloatspace;
                    if ((floatspace != null) && (floatspace.CellForPage(e.Item) != null))
                    {
                        // Prevent this existing store page from being removed due to the Propogate action below. This can
                        // occur because a cell with pages is added in one go and so insert events are generated for the
                        // existing pages inside the cell to ensure that the event is always fired consistently.
                        IgnoreStorePage = (KryptonStorePage)e.Item;
                    }
                }

                dockingManager.PropogateAction(ClearStoreAction, new string[] { e.Item.UniqueName });
                IgnoreStorePage = null;
            }
        }
Exemple #11
0
 private void kryptonNavigator1_Selected(object sender, KryptonPageEventArgs e)
 {
     AddOutput("Selected \t\t '" + e.Item.Text + "'");
 }
Exemple #12
0
        /***************************************************************************\
         * Event of clicking tab on the navigator | when the selected tab changes  *
        \***************************************************************************/
        private void NavigatorControl_TabClick(object sender, KryptonPageEventArgs e)
        {
            if (!FileBrowserNavigator.SelectedPage.Text.Equals("Batchs"))
            {
                if (!_Navigator.NavigatorControl.SelectedPage.Text.Equals("Summary"))
                {
                    LaunchButton.Enabled = true;
                    SaveToolStripButton.Enabled = true;
                    _Navigator.switchButtonSpec.Enabled = ComponentFactory.Krypton.Toolkit.ButtonEnabled.True;
                    _Navigator.EnableDisableAllProcessesButtonSpec.Enabled = ComponentFactory.Krypton.Toolkit.ButtonEnabled.True;
                    if (((FileBrowser)FileBrowserNavigator.SelectedPage.Tag).TreeView.SelectedNode != null && ((FileBrowser)FileBrowserNavigator.SelectedPage.Tag).TreeView.SelectedNode.ImageIndex == 2)
                    {
                        ((FileBrowser)FileBrowserNavigator.SelectedPage.Tag).TreeView.SelectedNode.BackColor = System.Drawing.SystemColors.ControlLight;
                        ((FileBrowser)FileBrowserNavigator.SelectedPage.Tag).TreeView.SelectedNode.ForeColor = Color.Black;
                    }

                }
                else
                {
                    LaunchButton.Enabled = false;
                    SaveToolStripButton.Enabled = false;
                    _Navigator.switchButtonSpec.Enabled = ComponentFactory.Krypton.Toolkit.ButtonEnabled.False;
                    _Navigator.EnableDisableAllProcessesButtonSpec.Enabled = ComponentFactory.Krypton.Toolkit.ButtonEnabled.False;
                    if (((FileBrowser)FileBrowserNavigator.SelectedPage.Tag).TreeView.SelectedNode != null && ((FileBrowser)FileBrowserNavigator.SelectedPage.Tag).TreeView.SelectedNode.ImageIndex == 2)
                    {
                        ((FileBrowser)FileBrowserNavigator.SelectedPage.Tag).TreeView.SelectedNode.BackColor = Color.FromKnownColor(System.Drawing.KnownColor.Highlight);
                        ((FileBrowser)FileBrowserNavigator.SelectedPage.Tag).TreeView.SelectedNode.ForeColor = Color.FromKnownColor(System.Drawing.KnownColor.HighlightText);
                        LaunchButton.Enabled = true;
                    }
                }
            }
        }
 /// <summary>
 /// Raises the CellPageInserting event.
 /// </summary>
 /// <param name="e">An KryptonPageEventArgs containing the event data.</param>
 protected virtual void OnCellPageInserting(KryptonPageEventArgs e)
 {
     CellPageInserting?.Invoke(this, e);
 }