Esempio n. 1
0
        /// <summary>
        /// Propogates a workspace cell list request down the hierarchy of docking elements.
        /// </summary>
        /// <param name="state">Request that should result in the cells collection being modified.</param>
        /// <param name="cells">Cells collection for modification by the docking elements.</param>
        public override void PropogateCellList(DockingPropogateCellList state, KryptonWorkspaceCellList cells)
        {
            switch (state)
            {
            case DockingPropogateCellList.All:
            case DockingPropogateCellList.Docked:
            case DockingPropogateCellList.Floating:
            case DockingPropogateCellList.Workspace:
            {
                // If the request relevant to this space control?
                if ((state == DockingPropogateCellList.All) ||
                    ((state == DockingPropogateCellList.Docked) && (ClearStoreAction == DockingPropogateAction.ClearDockedStoredPages)) ||
                    ((state == DockingPropogateCellList.Floating) && (ClearStoreAction == DockingPropogateAction.ClearFloatingStoredPages)) ||
                    ((state == DockingPropogateCellList.Workspace) && (ClearStoreAction == DockingPropogateAction.ClearFillerStoredPages)))
                {
                    // Find each cell in turn
                    KryptonWorkspaceCell cell = SpaceControl.FirstCell();
                    while (cell != null)
                    {
                        cells.Add(cell);
                        cell = SpaceControl.NextCell(cell);
                    }
                }
            }
            break;
            }

            // Let base class perform standard processing
            base.PropogateCellList(state, cells);
        }
Esempio n. 2
0
 /// <summary>
 /// Propogates a workspace cell list request down the hierarchy of docking elements.
 /// </summary>
 /// <param name="state">Request that should result in the cells collection being modified.</param>
 /// <param name="cells">Cells collection for modification by the docking elements.</param>
 public virtual void PropogateCellList(DockingPropogateCellList state, KryptonWorkspaceCellList cells)
 {
     // Propogate the action request to all the child elements
     // (use reverse order so if element removes itself we still have a valid loop)
     for (int i = Count - 1; i >= 0; i--)
     {
         this[i].PropogateCellList(state, cells);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Propogates a workspace cell list request down the hierarchy of docking elements.
 /// </summary>
 /// <param name="state">Request that should result in the cells collection being modified.</param>
 /// <param name="cells">Cells collection for modification by the docking elements.</param>
 public virtual void PropogateCellList(DockingPropogateCellList state, KryptonWorkspaceCellList cells)
 {
     // Propogate the action request to all the child elements
     // (use reverse order so if element removes itself we still have a valid loop)
     for (int i = Count - 1; i >= 0; i--)
         this[i].PropogateCellList(state, cells);
 }
Esempio n. 4
0
        /// <summary>
        /// Propogates a workspace cell list request down the hierarchy of docking elements.
        /// </summary>
        /// <param name="state">Request that should result in the cells collection being modified.</param>
        /// <param name="cells">Cells collection for modification by the docking elements.</param>
        public override void PropogateCellList(DockingPropogateCellList state, KryptonWorkspaceCellList cells)
        {
            switch (state)
            {
                case DockingPropogateCellList.All:
                case DockingPropogateCellList.Docked:
                case DockingPropogateCellList.Floating:
                case DockingPropogateCellList.Workspace:
                    {
                        // If the request relevant to this space control?
                        if ((state == DockingPropogateCellList.All) ||
                            ((state == DockingPropogateCellList.Docked) && (ClearStoreAction == DockingPropogateAction.ClearDockedStoredPages)) ||
                            ((state == DockingPropogateCellList.Floating) && (ClearStoreAction == DockingPropogateAction.ClearFloatingStoredPages)) ||
                            ((state == DockingPropogateCellList.Workspace) && (ClearStoreAction == DockingPropogateAction.ClearFillerStoredPages)))
                        {
                            // Find each cell in turn
                            KryptonWorkspaceCell cell = SpaceControl.FirstCell();
                            while (cell != null)
                            {
                                cells.Add(cell);
                                cell = SpaceControl.NextCell(cell);
                            }
                        }
                    }
                    break;
            }

            // Let base class perform standard processing
            base.PropogateCellList(state, cells);
        }