private void boton_desconectar_Click(object sender, EventArgs e) { InicioSesion sesion = new InicioSesion(); Hide(); sesion.ShowDialog(this); Show(); this.Close(); }
private void inicioDeSoftware_Tick(object sender, EventArgs e) { InicioSesion ini = new InicioSesion(); progressBar.Increment(2); if (progressBar.Value > 15) { panel1.Show(); } if (progressBar.Value > 30) { panel2.Show(); } if (progressBar.Value > 45) { panel3.Show(); } if (progressBar.Value > 60) { panel4.Show(); } if (progressBar.Value > 75) { panel5.Show(); } if (progressBar.Value > 90) { panel6.Show(); } if (progressBar.Value == progressBar.Maximum) { inicioDeSoftware.Stop(); Hide(); ini.ShowDialog(this); this.Close(); } }