Event arguments for a DockspaceCellAdding/DockspaceCellRemoving events.
Inheritance: System.EventArgs
コード例 #1
0
        /// <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);
            }
        }
コード例 #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);
     }
 }
コード例 #3
0
ファイル: KryptonDockingManager.cs プロジェクト: yp25/Krypton
 /// <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);
 }
コード例 #4
0
ファイル: KryptonDockingManager.cs プロジェクト: yp25/Krypton
 /// <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);
 }
コード例 #5
0
ファイル: KryptonDockingManager.cs プロジェクト: yp25/Krypton
 internal void RaiseDockspaceCellRemoved(DockspaceCellEventArgs e)
 {
     OnDockspaceCellRemoved(e);
 }
コード例 #6
0
ファイル: KryptonDockingManager.cs プロジェクト: yp25/Krypton
 internal void RaiseDockspaceCellAdding(DockspaceCellEventArgs e)
 {
     OnDockspaceCellAdding(e);
 }
コード例 #7
0
ファイル: Form1.cs プロジェクト: ComponentFactory/Krypton
        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);
        }