コード例 #1
0
ファイル: faceboardpro.cs プロジェクト: shah8701/faceboard
        private void btnEmails_EmailCreator_StartEmail_Click(object sender, EventArgs e)
        {
            try
            {
                try
                {
                  //  FrmCaptcha.CheckDbcUserNamePassword = chkEmails_EmailCreator_DBC.Checked;
                }
                catch (Exception ex)
                {
                    GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
                }
                if (lstLoadedFirstNamesForEmail.Count() < 1)
                {
                    MessageBox.Show("List of First name is Empty, Please upload First Name", "First Name Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }

                if (lstLoadedLastNamesForEmail.Count() < 1)
                {
                    MessageBox.Show("List of Last name is Empty, Please upload Last Name", "Last Name Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
              

              //  if (chkEmails_EmailCreator_DBC.Checked)
                {
                    int count = 1;
                    try
                    {
                        while (Globals.CheckStopAccountCreation)
                        {
                            Captchas.FrmCaptcha objCaptcha = new Captchas.FrmCaptcha(lstLoadedFirstNamesForEmail, lstLoadedLastNamesForEmail, CurrentCaptchaSetting, CurrentCaptchaUserName, CurrentCaptchaPassword);
                            objCaptcha.pageManagerEvent.handleParamsEvent += new EventHandler(pageManagerEvent_handleParamsEvent);
                            objCaptcha.ShowDialog();
                            GetAllEmails();
                            count = count + 1;
                        }

                    }
                    catch (Exception ex)
                    {
                        GlobusLogHelper.log.Error("Error : " + ex.StackTrace);

                    }
               // }
                //else
                //{
                //    try
                //    {
                //        Captchas.FrmCaptcha objCaptcha = new Captchas.FrmCaptcha(lstLoadedFirstNamesForEmail, lstLoadedLastNamesForEmail, CurrentCaptchaSetting, CurrentCaptchaUserName, CurrentCaptchaPassword);
                //        objCaptcha.pageManagerEvent.handleParamsEvent += new EventHandler(pageManagerEvent_handleParamsEvent);
                //        objCaptcha.ShowDialog();
                //        GetAllEmails();
                //    }
                //    catch (Exception ex)
                //    {
                //        GlobusLogHelper.log.Error("Error : " + ex.StackTrace);

                //    }
                }
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Error("Error : " + ex.StackTrace);

            }

        }
コード例 #2
0
ファイル: faceboardpro.cs プロジェクト: shah8701/faceboard
 private void radioButton1_Click(object sender, EventArgs e)
 {
     Captchas.FrmCaptcha objCaptcha = new Captchas.FrmCaptcha(lstLoadedFirstNamesForEmail, lstLoadedLastNamesForEmail, CurrentCaptchaSetting, CurrentCaptchaUserName, CurrentCaptchaPassword);
     objCaptcha.ShowDialog();
 }
コード例 #3
0
ファイル: faceboardpro.cs プロジェクト: shah8701/faceboard
 private void btnCreateEmials_Click(object sender, EventArgs e)
 {
     Captchas.FrmCaptcha objCaptcha = new Captchas.FrmCaptcha();
     objCaptcha.ShowDialog();
     //Captchas.FrmCaptcha objCaptcha = new Captchas.FrmCaptcha();
     //objCaptcha.ShowDialog();
 }