public void GetGoogleCheck(object obj)
        {
            GoogleCheckParm googlecheckparm = obj as GoogleCheckParm;

            Define.GoogleCheckResult = Protocol.GetGoogleCheckResult(googlecheckparm.totpCode);
            OnReadParamEvent(Define.GoogleCheckResult.ToString());//触发事件
        }
Exemple #2
0
        private void OnGoogleCheck()
        {
            Define.GoogleCheck = txt_GoogleCheck.Text;
            if (Define.GoogleCheck != "")
            {
                GoogleCheckParm googlecheckparm = new GoogleCheckParm();
                googlecheckparm.totpCode = Define.GoogleCheck;

                ThreadEx threadex = new ThreadEx();
                threadex.Start(new ParameterizedThreadStart(threadex.GetGoogleCheck), (Object)googlecheckparm, new EventHandler(GetGoogleCheck), this);
            }
            button2.Enabled = false;
        }
Exemple #3
0
        private void OnGoogleCheck()
        {
            Define.GoogleCheck = txt_GoogleCheck.Text;
            if (Define.GoogleCheck != "")
            {
                GoogleCheckParm googlecheckparm = new GoogleCheckParm();
                googlecheckparm.totpCode = Define.GoogleCheck;

                ThreadEx threadex = new ThreadEx();
                threadex.Start(new ParameterizedThreadStart(threadex.GetGoogleCheck), (Object)googlecheckparm, new EventHandler(GetGoogleCheck), this);

            }
            button2.Enabled = false;
        }