Event arguments for a DockspaceCellAdding/DockspaceCellRemoving events.
Inheritance: System.EventArgs
        /// <summary>
        /// Raises the type specific cell removed event determined by the derived class.
        /// </summary>
        /// <param name="cell">Reference to an existing cell being removed.</param>
        protected override void RaiseCellRemoved(KryptonWorkspaceCell cell)
        {
            // Generate event so the dockspace cell customization can be reversed.
            KryptonDockingManager dockingManager = DockingManager;

            if (dockingManager != null)
            {
                DockspaceCellEventArgs args = new DockspaceCellEventArgs(DockspaceControl, this, cell);
                dockingManager.RaiseDockspaceCellRemoved(args);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Raises the type specific cell removed event determinated by the derived class.
 /// </summary>
 /// <param name="cell">Referecence to an existing cell being removed.</param>
 protected override void RaiseCellRemoved(KryptonWorkspaceCell cell)
 {
     // Generate event so the dockspace cell customization can be reversed.
     KryptonDockingManager dockingManager = DockingManager;
     if (dockingManager != null)
     {
         DockspaceCellEventArgs args = new DockspaceCellEventArgs(DockspaceControl, this, cell);
         dockingManager.RaiseDockspaceCellRemoved(args);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Raises the DockspaceCellRemoved event.
 /// </summary>
 /// <param name="e">An DockspaceCellEventArgs containing the event args.</param>
 protected virtual void OnDockspaceCellRemoved(DockspaceCellEventArgs e)
 {
     if (DockspaceCellRemoved != null)
         DockspaceCellRemoved(this, e);
 }
Esempio n. 4
0
 /// <summary>
 /// Raises the DockspaceCellAdding event.
 /// </summary>
 /// <param name="e">An DockspaceCellEventArgs containing the event args.</param>
 protected virtual void OnDockspaceCellAdding(DockspaceCellEventArgs e)
 {
     if (DockspaceCellAdding != null)
         DockspaceCellAdding(this, e);
 }
Esempio n. 5
0
 internal void RaiseDockspaceCellRemoved(DockspaceCellEventArgs e)
 {
     OnDockspaceCellRemoved(e);
 }
Esempio n. 6
0
 internal void RaiseDockspaceCellAdding(DockspaceCellEventArgs e)
 {
     OnDockspaceCellAdding(e);
 }
Esempio n. 7
0
        private void kryptonDockingManager_DockspaceCellAdding(object sender, DockspaceCellEventArgs e)
        {
            Console.WriteLine("DockspaceCellAdding");

            // Set the correct appearance of the dockspace cell based on current settings
            UpdateCell(e.CellControl);
        }