private bool Loguin() { //lbGrupos.Visible = false; eUSUARIO = null; lblUSUARIO.Text = ""; msMENU.Items.Clear(); frmLOGIN formLOGIN = new frmLOGIN(); DialogResult drLOGIN = formLOGIN.ShowDialog(); if (drLOGIN != DialogResult.OK) { Application.Exit(); return false; } eSESION = formLOGIN.SESION; eUSUARIO = eSESION.USUARIO; txtUsuario.Text = eUSUARIO.USU_NOMBRE; return true; }
public static frmLOGIN ObtenerInstancia() { if (_instancia == null || _instancia.IsDisposed) { _instancia = new frmLOGIN(); } return _instancia; }