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