/// <summary> /// Raises the type specific space control removed event determinated by the derived class. /// </summary> protected override void RaiseRemoved() { // Generate event so the any floatspace customization can be reversed. KryptonDockingManager dockingManager = DockingManager; if (dockingManager != null) { FloatspaceEventArgs args = new FloatspaceEventArgs(FloatspaceControl, this); dockingManager.RaiseFloatspaceRemoved(args); } // Generate event so interested parties know this element and associated control have been removed Dispose(); }
private KryptonDockingFloatingWindow CreateFloatingWindow(string name) { // Create a floatspace and floating window for hosting the floatspace KryptonDockingFloatspace floatSpaceElement = new KryptonDockingFloatspace("Floatspace"); KryptonDockingFloatingWindow floatingWindowElement = new KryptonDockingFloatingWindow(name, OwnerForm, floatSpaceElement); floatingWindowElement.Disposed += OnDockingFloatingWindowDisposed; InternalAdd(floatingWindowElement); // Events are generated from the parent docking manager KryptonDockingManager dockingManager = DockingManager; if (dockingManager != null) { // Generate events so the floating window/dockspace appearance can be customized FloatingWindowEventArgs floatingWindowArgs = new FloatingWindowEventArgs(floatingWindowElement.FloatingWindow, floatingWindowElement); FloatspaceEventArgs floatSpaceArgs = new FloatspaceEventArgs(floatSpaceElement.FloatspaceControl, floatSpaceElement); dockingManager.RaiseFloatingWindowAdding(floatingWindowArgs); dockingManager.RaiseFloatspaceAdding(floatSpaceArgs); } return(floatingWindowElement); }
private KryptonDockingFloatingWindow CreateFloatingWindow(string name) { // Create a floatspace and floating window for hosting the floatspace KryptonDockingFloatspace floatSpaceElement = new KryptonDockingFloatspace("Floatspace"); KryptonDockingFloatingWindow floatingWindowElement = new KryptonDockingFloatingWindow(name, OwnerForm, floatSpaceElement); floatingWindowElement.Disposed += new EventHandler(OnDockingFloatingWindowDisposed); InternalAdd(floatingWindowElement); // Events are generated from the parent docking manager KryptonDockingManager dockingManager = DockingManager; if (dockingManager != null) { // Generate events so the floating window/dockspace appearance can be customized FloatingWindowEventArgs floatingWindowArgs = new FloatingWindowEventArgs(floatingWindowElement.FloatingWindow, floatingWindowElement); FloatspaceEventArgs floatSpaceArgs = new FloatspaceEventArgs(floatSpaceElement.FloatspaceControl, floatSpaceElement); dockingManager.RaiseFloatingWindowAdding(floatingWindowArgs); dockingManager.RaiseFloatspaceAdding(floatSpaceArgs); } return floatingWindowElement; }
/// <summary> /// Raises the type specific space control removed event determinated by the derived class. /// </summary> protected override void RaiseRemoved() { // Generate event so the any floatspace customization can be reversed. KryptonDockingManager dockingManager = DockingManager; if (dockingManager != null) { FloatspaceEventArgs args = new FloatspaceEventArgs(FloatspaceControl, this); dockingManager.RaiseFloatspaceRemoved(args); } // Generate event so interested parties know this element and associated control have been removed Dispose(); }
/// <summary> /// Raises the FloatspaceRemoved event. /// </summary> /// <param name="e">An FloatspaceEventArgs containing the event args.</param> protected virtual void OnFloatspaceRemoved(FloatspaceEventArgs e) { if (FloatspaceRemoved != null) FloatspaceRemoved(this, e); }
/// <summary> /// Raises the FloatspaceAdding event. /// </summary> /// <param name="e">An FloatspaceEventArgs containing the event args.</param> protected virtual void OnFloatspaceAdding(FloatspaceEventArgs e) { if (FloatspaceAdding != null) FloatspaceAdding(this, e); }
internal void RaiseFloatspaceRemoved(FloatspaceEventArgs e) { OnFloatspaceRemoved(e); }
internal void RaiseFloatspaceAdding(FloatspaceEventArgs e) { OnFloatspaceAdding(e); }