Exemplo n.º 1
0
 private void Timer3_Tick(object sender, EventArgs e)
 {
     ticks2--;
     lblTime2.Text = ticks2.ToString();
     if (ticks2 == 1)
     {
         miniLoadEmail.Visible = false;
     }
     else if (ticks2 == 0)
     {
         timer3.Stop();
         this.Hide();
         UserSignin userSignin = new UserSignin();
         userSignin.Show();
         DummyEmail m = new DummyEmail();
         m.Show();
     }
 }
Exemplo n.º 2
0
        private void Timer1_Tick(object sender, EventArgs e)
        {
            ticks1--;
            lblTimer1.Text = ticks1.ToString();
            if (ticks1 == 2)
            {
                picWait.Visible = false;
            }
            else if (ticks1 == 1)
            {
                lblPleaseWait.Visible    = false;
                lblTryAnotherWay.Visible = true;
                lblResendCode.Visible    = true;
                lblDidntReceive.Visible  = true;
                btnVerifyCode.Enabled    = true;
                txtEnterCode.Enabled     = true;
                bunifuSeparator1.Visible = true;
                picBack.Visible          = true;
                lblBack.Visible          = true;
            }
            else if (ticks1 == 0)
            {
                DummyMobileMessage dummyMobileMessage = new DummyMobileMessage();
                DummyEmail         dummyEmail         = new DummyEmail();

                if (SendMsgButton == true)
                {
                    dummyMobileMessage.Show();
                    timer1.Stop();
                }
                if (SendEmailButton == true)
                {
                    dummyEmail.Show();
                    dummyMobileMessage.Hide();
                    timer1.Stop();
                }
            }
        }