示例#1
0
 /// <summary>
 /// 单例
 /// </summary>
 /// <returns></returns>
 public static frmWorkFlow GetInstance()
 {
     if (fInstance == null)
     {
         fInstance = new frmWorkFlow();
     }
     return(fInstance);
 }
示例#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;
        }
示例#3
0
 private void frm_WorkFlow_FormClosed(object sender, FormClosedEventArgs e)
 {
     fInstance = null;
 }