Esempio n. 1
0
 private void TickEvent(object sender, EventArgs e)
 {
     HoraInfo.Text = DateTime.Now.ToString("HH:mm:ss");
     if (SQLiteManager.DebeEjecutarse())
     {
         BringToFront();
         Show();
         TopMost = true;
         RefractoIcon.Visible = false;
         WindowState          = FormWindowState.Maximized;
         SetearUI_Session(_userSession);
         SQLiteManager.EliminarRegistro(_userSession.Id_Recepcion);
         OracleManager.VerificarIntegridadBaseDeDatos(_userSession.Id_Planta);
         SQLiteManager.CambiarEstado_App(2);
     }
     if (SQLiteManager.DebeMinimizarse())
     {
         Limpiar_UI();
         //SQLiteManager.CambiarEstado_App(0);
         WindowState = FormWindowState.Minimized;
         _userSession.Clear_Session();
         Hide();
         RefractoIcon.Visible = true;
         RefractoIcon.ShowBalloonTip(1000);
     }
     else
     {
         _cooperado.BringToFront();
     }
 }
Esempio n. 2
0
 private void ResizeEvent(object sender, EventArgs e)
 {
     if (WindowState == FormWindowState.Minimized)
     {
         Hide();
         RefractoIcon.Visible = true;
         RefractoIcon.ShowBalloonTip(2500);
     }
 }