Ejemplo n.º 1
0
        private void CargaInicial_Load(object sender, EventArgs e)
        {
            try
            {
                circularProgressBar1.Value   = 0;
                circularProgressBar1.Minimum = 0;
                circularProgressBar1.Maximum = 500;
                TimerInicio.Start();
                TimerMensajes.Start();
                TimerCierre.Start();
            }

            catch (Exception ex)
            {
                this.Hide();
                MessageBox.Show("Error al intertar cargar datos. \r" + ex, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                Environment.Exit(0);
            }
        }
Ejemplo n.º 2
0
 private void Timer2_Tick(object sender, EventArgs e)
 {
     try
     {
         this.Opacity -= 0.1;
         if (this.Opacity == 0)
         {
             TimerCierre.Stop();
             if (response != "")
             {
                 TimerMensajes.Stop();
                 TimerInicio.Stop();
                 this.Close();
             }
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }