Beispiel #1
0
 private void TimerLoading_Tick(object sender, EventArgs e)
 {
     if (PgBar.Value < 100)
     {
         PgBar.Value = PgBar.Value + 10;
         //LblBarraCarga.Text = "Cargando el sistema (" + PgBar + "%)";
     }
     else
     {
         TimerLoading.Enabled = false;
         this.Hide();
         FrmLogin frmIni = new FrmLogin();
         frmIni.Show();
     }
 }
        static void Main()
        {
            configuracion();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            FrmLogin login = new FrmLogin();

            if (login.ShowDialog() == DialogResult.OK)
            {
                Application.Run(new FrmMenu());
            }
            else
            {
                Application.Exit();
            }
        }
Beispiel #3
0
 private void salirToolStripMenuItem_Click(object sender, EventArgs e)
 {
     this.Close();
     FrmLogin frmLogin = new FrmLogin();
     frmLogin.Show();
 }