Ejemplo n.º 1
0
 /// <summary>
 /// 单例
 /// </summary>
 /// <returns></returns>
 public static frm_LeftMenu GetInstance()
 {
     if (fInstance == null)
     {
         fInstance = new frm_LeftMenu();
     }
     return(fInstance);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 主界面初始化
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frmFuckingERP_Load(object sender, EventArgs e)
        {
            frm_LeftMenu leftMenu = new frm_LeftMenu();

            leftMenu.Show(dockPanel1);
            leftMenu.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockLeft;

            frmWorkFlow flowMenu = new frmWorkFlow();

            flowMenu.Show(dockPanel1);
            flowMenu.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 窗体关闭,释放内存
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frm_LeftMenu_FormClosed(object sender, FormClosedEventArgs e)
 {
     fInstance = null;
 }