Ejemplo n.º 1
0
        private void ManagerMenu_Click(object sender, EventArgs e)
        {
            frmManagerInfo frmManager = frmManagerInfo.GetFrmManagerInfo();

            frmManager.Focus();
            frmManager.Show();
        }
        public static frmManagerInfo GetFrmManagerInfo()
        {
            if (frmManager == null)
            {
                lock (obj)
                {
                    if (frmManager == null)
                    {
                        frmManager = new frmManagerInfo();
                    }
                }
            }

            return(frmManager);
        }
 private void frmManagerInfo_FormClosed(object sender, FormClosedEventArgs e)
 {
     frmManager = null;
 }