/// <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); } }
/// <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); } }
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 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 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); } } }