Event arguments for a FloatspaceAdding/FloatspaceRemoved event.
Inheritance: System.EventArgs
        /// <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();
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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();
        }
Esempio n. 5
0
 /// <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);
 }
Esempio n. 6
0
 /// <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);
 }
Esempio n. 7
0
 internal void RaiseFloatspaceRemoved(FloatspaceEventArgs e)
 {
     OnFloatspaceRemoved(e);
 }
Esempio n. 8
0
 internal void RaiseFloatspaceAdding(FloatspaceEventArgs e)
 {
     OnFloatspaceAdding(e);
 }