Esempio n. 1
0
        /// <summary>
        /// 显示/隐藏导航菜单面板
        /// </summary>
        private void OptNavigationPanel()
        {
            if (m_NavigationForm == null || m_NavigationForm.IsDisposed)
            {
                m_NavigationForm = new frmNavigation();
            }

            if (m_NavigationForm.DockPanel == null)
            {
                m_NavigationForm.Show(dpMain, DockState.DockLeft);
            }
            else
            {
                if (m_NavigationForm.IsHidden)
                {
                    m_NavigationForm.Show(dpMain, DockState.DockLeft);
                }
                else if (m_NavigationForm.DockState == DockState.DockLeftAutoHide)
                {
                    m_NavigationForm.Show(dpMain, DockState.DockLeft);
                }
                else
                {
                    m_NavigationForm.DockPanel = null;
                }
            }
        }
Esempio n. 2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public frmMain()
 {
     InitializeComponent();
     m_NavigationForm = new frmNavigation();
 }