/// <summary>
        /// Initializes a new instance of the <see cref="DialogToolStripMenuItem"/> class.
        /// </summary>
        /// <param name="title">The title.</param>
        /// <param name="id">The identifier.</param>
        /// <param name="classType">Type of the class.</param>
        public DialogToolStripMenuItem(string id, string title, DialogClassType classType)
            : base(title)
        {
            ID          = id;
            ClassType   = classType;
            AutoFollow  = false;
            ToolTipText = "";

            Hierarchy = DialogToolStripHierarchy.Unknown;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="DialogToolStripMenuItem"/> class.
        /// </summary>
        /// <param name="dlgEntry">The dialog entry.</param>
        public DialogToolStripMenuItem(DialogEntry dlgEntry)
            : base(dlgEntry.Title)
        {
            dialogEntryItem = dlgEntry;
            ID               = dlgEntry.ID;
            ClassType        = DialogClassType.DialogEntry;
            this.ToolTipText = dlgEntry.Help;
            AutoFollow       = false;
            ToolTipText      = dlgEntry.Help;

            if (dlgEntry.HasSubmenu())
            {
                Hierarchy = DialogToolStripHierarchy.Node;
            }
            else
            {
                Hierarchy = DialogToolStripHierarchy.Leaf;
            }
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="DialogToolStripMenuItem"/> class.
        /// </summary>
        /// <param name="text">The text.</param>
        /// <param name="id">The identifier.</param>
        /// <param name="type">The type.</param>
        public DialogToolStripMenuItem(Dialog dlg) : base(dlg.Title)
        {
            dialogItem       = dlg;
            ID               = dlg.ID;
            ClassType        = DialogClassType.Dialog;
            Status           = DialogToolStripitemStatus.Closed;
            this.ToolTipText = dlg.Help;
            AutoFollow       = false;
            ToolTipText      = dlg.Help;

            if (dlg.Parent == null)
            {
                Hierarchy = DialogToolStripHierarchy.Root;
            }
            else
            {
                Hierarchy = DialogToolStripHierarchy.Node;
            }
        }