//private void SetMenuItemList(ToolStripMenuItem toolStripMenuItem, ToolStripDropDownItem toolStripDropDownItem)
        //{
        //    if (toolStripDropDownItem == null) return;
        //    //
        //    foreach (ToolStripItem one in toolStripDropDownItem.DropDownItems)
        //    {
        //        System.Windows.Forms.ToolStripMenuItem item = new ToolStripMenuItem(one.Text, null, new EventHandler(DockBarItem_Click));
        //        item.Checked = one.Visible;
        //        item.Tag = one;
        //        toolStripMenuItem.DropDownItems.Add(item);
        //        //
        //        this.SetMenuItemList(item, one as ToolStripDropDownItem);
        //    }
        //}
        private void DockBarItem_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem one = sender as ToolStripMenuItem;

            if (one == null)
            {
                return;
            }
            ToolStripItem item = one.Tag as ToolStripItem;

            if (item == null)
            {
                return;
            }
            one.Checked  = !one.Checked;
            item.Visible = one.Checked;
            //
            //
            //
            IDockArea pDockArea = this.m_pDockBar.Parent as IDockArea;

            if (pDockArea == null)
            {
                return;
            }
            if (pDockArea.eDockAreaStyle != DockAreaStyle.eDockBarFloatForm)
            {
                return;
            }
            DockBarFloatForm dockBarFloatForm = this.m_pDockBar.Parent as DockBarFloatForm;

            if (dockBarFloatForm == null)
            {
                return;
            }
            if (item.Visible)
            {
                dockBarFloatForm.Width += item.Margin.Left + item.Width + item.Margin.Right;
            }
            else
            {
                dockBarFloatForm.Width -= item.Margin.Left + item.Width + item.Margin.Right;
            }
            dockBarFloatForm.ResetSize();
        }
        private void ResetDockBarItem_Click(object sender, EventArgs e)
        {
            this.m_pDockBar.Reset();
            //
            //
            //
            IDockArea pDockArea = this.m_pDockBar.Parent as IDockArea;

            if (pDockArea == null)
            {
                return;
            }
            if (pDockArea.eDockAreaStyle != DockAreaStyle.eDockBarFloatForm)
            {
                return;
            }
            DockBarFloatForm dockBarFloatForm = this.m_pDockBar.Parent as DockBarFloatForm;

            if (dockBarFloatForm == null)
            {
                return;
            }
            dockBarFloatForm.ResetSize();
        }