using System;
using System.Text;
namespace DevComponents.DotNetBar
{
    /// 
    /// Provides data for the Quick Access Toolbar Customize dialog events.
    /// 
    public class QatCustomizeDialogEventArgs : EventArgs
    {
        /// 
        /// Gets or sets whether to cancel the current operation. When showing the dialog this allows to cancel the showing. When dialog is closed
        /// it allows to cancel the changes made on customize dialog.
        /// 
        public bool Cancel = false;
        /// 
        /// Gets or sets the reference to the form that is acting as dialog. You can set this value to your custom form to display it instead of
        /// built-in dialog.
        /// 
        public System.Windows.Forms.Form Dialog = null;
        /// 
        /// Creates new instance of the object and initializes it with default values.
        /// 
        /// Reference to the dialog being used for customization.
        public QatCustomizeDialogEventArgs(System.Windows.Forms.Form dialog)
        {
            this.Dialog = dialog;
        }
    }
}