Esempio n. 1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     panel2.Width += 24;
     if (panel2.Width >= 769)
     {
         timer1.Stop();
         FrmMain2 inv = new FrmMain2();
         inv.lblUsername.Text = Login.InvPassName;
         inv.lblName.Text     = Login.InvPassName;
         inv.lblAccount.Text  = Login.InvPassAccount;
         inv.lblPosition.Text = Login.InvPassAccount;
         inv.Show();
         this.Hide();
     }
 }
Esempio n. 2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            panel2.Width += 50;
            if (panel2.Width >= 329)
            {
                timer1.Stop();
                FrmMain2 load = new FrmMain2();
                load.lblUsername.Text         = FrmMain1.PassToPOSName;
                load.lblName.Text             = FrmMain1.PassToPOSName;
                load.lblAccount.Text          = FrmMain1.PassToPOSAccount;
                load.lblPosition.Text         = FrmMain1.PassToPOSAccount;
                load.BtnBackAdminMode.Visible = true;
                load.Show();

                this.Hide();
            }
        }