private void SplashTimer_Tick(object sender, EventArgs e)
 {
     progress       += 10;
     lblLoading.Text = String.Format("Loading {0}%...", progress);
     Logo2.Visible   = false;
     SplashAnimator3.Show(Logo2);
     if (progress >= 110)
     {
         SplashTimer.Stop();
         frmLogin log = new frmLogin();
         this.Hide();
         SplashAnimator2.Show(log);
     }
 }
예제 #2
0
        private void login()
        {
            String user = "", pass = "";

            user = txtLogin.Text.Trim();
            pass = txtPass.Text.Trim();
            OleDbDataReader reader = null;
            Boolean         bl = false;
            String          sql = "", sql2 = "", Res = "";

            AdminMain log = new AdminMain();

            log.Text         = "" + user;
            log.lblpass.Text = pass;
            this.Hide();
            SplashAnimator2.Show(log);
        }