DotNet 4.8.1 build of DotNetBar

This commit is contained in:
2025-02-07 10:35:23 -05:00
parent 33439b63a0
commit 6b0a5d60f4
2609 changed files with 989814 additions and 7 deletions

View File

@@ -0,0 +1,43 @@
using System;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents event arguments for DockTabClosing event.
/// </summary>
public class DockTabClosingEventArgs:EventArgs
{
/// <summary>
/// Indicates the DockContainerItem that is about to close.
/// </summary>
public readonly DockContainerItem DockContainerItem;
/// <summary>
/// Provides ability to cancel closing of the DockContainerItem. Default value is false.
/// </summary>
public bool Cancel=false;
/// <summary>
/// Set to true to automatically remove DockContainerItem from the Bar.Items collection after it is closed. Default value is false
/// which means that DockContainerItem will be kept in collection but it will be hidden after this event is complete.
/// </summary>
public bool RemoveDockTab=false;
/// <summary>
/// Returns source of the event: keyboard, mouse or code.
/// </summary>
public readonly eEventSource Source;
/// <summary>
/// Creates new instance of the class.
/// </summary>
/// <param name="item">Reference to DockContainerItem that is about to close</param>
public DockTabClosingEventArgs(DockContainerItem item, eEventSource source)
{
this.DockContainerItem=item;
this.Source=source;
}
}
/// <summary>
/// Delegate for DockTabClosing event.
/// </summary>
public delegate void DockTabClosingEventHandler(object sender, DockTabClosingEventArgs e);
}