示例#1
0
 public static OTPBuilder Instance()
 {
     if (OTPbuilder == null)
     {
         OTPbuilder = new OTPBuilder();
     }
     return(OTPbuilder);
 }
示例#2
0
        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();
            }
        }
示例#3
0
 private void GetOTP()
 {
     LBPassword10min.Text = OTPBuilder.GetTenMinOTP();
     LBPassword1s.Text    = OTPBuilder.GetOneSecondOTP();
 }