using System;
namespace DevComponents.DotNetBar
{
	/// 
	/// Represents event arguments for DockTabClosing event.
	/// 
	public class DockTabClosingEventArgs:EventArgs
	{
		/// 
		/// Indicates the DockContainerItem that is about to close.
		/// 
		public readonly DockContainerItem DockContainerItem;
		/// 
		/// Provides ability to cancel closing of the DockContainerItem. Default value is false.
		/// 
		public bool Cancel=false;
		/// 
		/// 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.
		/// 
		public bool RemoveDockTab=false;
		/// 
		/// Returns source of the event: keyboard, mouse or code.
		/// 
		public readonly eEventSource Source;
		/// 
		/// Creates new instance of the class.
		/// 
		/// Reference to DockContainerItem that is about to close
		public DockTabClosingEventArgs(DockContainerItem item, eEventSource source)
		{
			this.DockContainerItem=item;
			this.Source=source;
		}
	}
	/// 
	/// Delegate for DockTabClosing event.
	/// 
	public delegate void DockTabClosingEventHandler(object sender, DockTabClosingEventArgs e);
}