private void Timer1_Tick(object sender, EventArgs e) { GetOTP(); jtime++; RTB1.Text += OTPBuilder.GetOneSecondOTP() + " ---- " + jtime + " \n"; //RTB2.Text += OTPBuilder.GetTenMinOTP() + "\n"; if (OTPBuilder.GetTenMinOTP() != oldstr) { itime++; RTB2.Text += OTPBuilder.GetTenMinOTP() + " ---- " + itime + " \n"; oldstr = OTPBuilder.GetTenMinOTP(); } }
private void GetOTP() { LBPassword10min.Text = OTPBuilder.GetTenMinOTP(); LBPassword1s.Text = OTPBuilder.GetOneSecondOTP(); }