示例#1
0
 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();
 }
示例#2
0
 private void menuItem2_Click(object sender, EventArgs e)
 {
     frmLogin log = new frmLogin();
     Globales.user = null;
     log.ShowDialog();
     log.Close();
     log = null;
 }