public static Login GetInstance() { if (_instancia == null) _instancia = new Login(); return _instancia; }
private void mnuLogOff_Click(object sender, EventArgs e) { DialogResult Result = MessageBox.Show("Desea cerrar sesion?", "Confirmacion", MessageBoxButtons.OKCancel); if(Result == DialogResult.OK) { this.Hide(); Login Lg = new Login(); Lg.Show(); } }