private void Timer2_Tick(object sender, EventArgs e) { ticks2--; lblTime2.Text = ticks2.ToString(); if (ticks2 == 1) { miniLoadMsg.Visible = false; } else if (ticks2 == 0) { timer2.Stop(); this.Hide(); UserSignin userSignin = new UserSignin(); userSignin.Show(); DummyMobileMessage m = new DummyMobileMessage(); m.Show(); } }
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(); } } }