Event arguments for events that need to provide a set of unique names.
Inheritance: System.EventArgs
Exemple #1
0
        private void OnFloatingWindowCloseClicked(object sender, UniqueNamesEventArgs e)
        {
            // Events are generated from the parent docking manager
            KryptonDockingManager dockingManager = DockingManager;

            dockingManager?.CloseRequest(e.UniqueNames);
        }
        private void OnDockspacePagesDoubleClicked(object sender, UniqueNamesEventArgs e)
        {
            // Generate event so that the switch from docked to floating is handled for the provided list of named pages
            KryptonDockingManager dockingManager = DockingManager;

            dockingManager?.SwitchDockedToFloatingWindowRequest(e.UniqueNames);
        }
Exemple #3
0
 /// <summary>
 /// Raises the PagesDoubleClicked event.
 /// </summary>
 /// <param name="e">An UniqueNamesEventArgs containing the event data.</param>
 protected virtual void OnPagesDoubleClicked(UniqueNamesEventArgs e)
 {
     if (PagesDoubleClicked != null)
     {
         PagesDoubleClicked(this, e);
     }
 }
Exemple #4
0
 /// <summary>
 /// Raises the WindowCloseClicked event.
 /// </summary>
 /// <param name="e">An UniqueNamesEventArgs that contains the event data.</param>
 protected virtual void OnWindowCloseClicked(UniqueNamesEventArgs e)
 {
     if (WindowCloseClicked != null)
     {
         WindowCloseClicked(this, e);
     }
 }
 private void OnFloatspacePagesDoubleClicked(object sender, UniqueNamesEventArgs e)
 {
     // If the number of pages to be converted into a separate floating window is less than the
     // total number of visible pages then we allow the change to occur. Otherwise it would cause
     // all pages to be removed into another window which would be pointless.
     if (e.UniqueNames.Length < FloatspaceControl.PageVisibleCount)
     {
         KryptonDockingManager dockingManager = DockingManager;
         dockingManager?.SwitchFloatingToFloatingWindowRequest(e.UniqueNames);
     }
 }
 /// <summary>
 /// Raises the WindowCloseClicked event.
 /// </summary>
 /// <param name="e">An UniqueNamesEventArgs that contains the event data.</param>
 protected virtual void OnWindowCloseClicked(UniqueNamesEventArgs e)
 {
     if (WindowCloseClicked != null)
         WindowCloseClicked(this, e);
 }
Exemple #7
0
 /// <summary>
 /// Raises the WindowCloseClicked event.
 /// </summary>
 /// <param name="e">An UniqueNamesEventArgs that contains the event data.</param>
 protected virtual void OnWindowCloseClicked(UniqueNamesEventArgs e)
 {
     WindowCloseClicked?.Invoke(this, e);
 }
Exemple #8
0
 /// <summary>
 /// Raises the PagesDoubleClicked event.
 /// </summary>
 /// <param name="e">An UniqueNamesEventArgs containing the event data.</param>
 protected virtual void OnPagesDoubleClicked(UniqueNamesEventArgs e)
 {
     PagesDoubleClicked?.Invoke(this, e);
 }
 private void OnDockspacePagesDoubleClicked(object sender, UniqueNamesEventArgs e)
 {
     // Generate event so that the switch from docked to floating is handled for the provided list of named pages
     KryptonDockingManager dockingManager = DockingManager;
     if (dockingManager != null)
         dockingManager.SwitchDockedToFloatingWindowRequest(e.UniqueNames);
 }
 private void OnFloatingWindowCloseClicked(object sender, UniqueNamesEventArgs e)
 {
     // Events are generated from the parent docking manager
     KryptonDockingManager dockingManager = DockingManager;
     if (dockingManager != null)
         dockingManager.CloseRequest(e.UniqueNames);
 }
 private void OnFloatspacePagesDoubleClicked(object sender, UniqueNamesEventArgs e)
 {
     // If the number of pages to be converted into a separate floating window is less than the
     // total number of visible pages then we allow the change to occur. Otherwise it would cause
     // all pages to be removed into another window which would be pointless.
     if (e.UniqueNames.Length < FloatspaceControl.PageVisibleCount)
     {
         KryptonDockingManager dockingManager = DockingManager;
         if (dockingManager != null)
             dockingManager.SwitchFloatingToFloatingWindowRequest(e.UniqueNames);
     }
 }