private void frmPrincipal_Load(object sender, EventArgs e) { if (!VerificarConexion()) { Application.Exit(); return; } backgroundWorker2.RunWorkerAsync(); frmLogin log = new frmLogin(); log.ShowDialog(); log.Close(); log = null; if(Globales.user!=null) backgroundWorker1.RunWorkerAsync(); }
private void menuItem2_Click(object sender, EventArgs e) { frmLogin log = new frmLogin(); Globales.user = null; log.ShowDialog(); log.Close(); log = null; }