Exemple #1
0
        private void btn_reg_Click(object sender, EventArgs e)
        {
            CsdnHelper ctmp = new CsdnHelper();

            ctmp.getImgVcode    += new CsdnHelper.GetImgVcode(getVcode);
            ctmp.showLogs       += new CsdnHelper.ShowLogs(showlogs);
            ctmp.regeristResult += new CsdnHelper.RegeristResult(dealRegcsdn);
            ctmp.getRegVcode    += new CsdnHelper.GetRegVcode(getRegVcode);
            string regPass = "";

            regPass     = txt_regPass.Text.Trim() == "" ? "yqmacCSDN" : txt_regPass.Text.Trim();
            ctmp.ComMsg = msgs;
            ctmp.AutoRunTocheck(regPass, 1);
            //ctmp = null;
        }
Exemple #2
0
        private void btn_auto_Click(object sender, EventArgs e)
        {
            // CsdnResouce csdn = new CsdnResouce();
            CsdnHelper csdn = new CsdnHelper();

            csdn.getImgVcode    += new CsdnHelper.GetImgVcode(getVcode);
            csdn.showLogs       += new CsdnHelper.ShowLogs(showlogs);
            csdn.regeristResult += new CsdnHelper.RegeristResult(dealRegcsdn);
            csdn.getRegVcode    += new CsdnHelper.GetRegVcode(getRegVcode);
            csdn.ComMsg          = msgs;

            string regPass = "";
            int    regNum  = 1;

            regPass = txt_regPass.Text.Trim() == "" ? "yqmacCSDN" : txt_regPass.Text.Trim();
            int.TryParse(txt_regNum.Text.Trim(), out regNum);
            regNum = regNum == 0 ? 1 : regNum;
            csdn.AutoRunTocheck(regPass, regNum);
        }