Exemple #1
0
        private string ShowCaptchaDialog(HttpHandler httpHandler)
        {
            var captchaDialog = new CaptchaDialog(httpHandler);
            var captcha       = string.Empty;

            if (captchaDialog.ShowDialog() == DialogResult.OK)
            {
                captcha = captchaDialog.txtCaptcha.Text;
            }
            captchaDialog.Dispose();
            return(captcha);
        }
        private string[] method_7(HttpHandler httpHandler_1, ref string string_6)
        {
            if (this.bool_0)
            {
                CaptchaDialog captchaDialog = new CaptchaDialog(httpHandler_1, ref string_6, true);
                string[]      ans           = captchaDialog.ans;
                Console.Write(ans);
                captchaDialog.Dispose();
                return(ans);
            }
            CaptchaDialog captchaDialog2 = new CaptchaDialog(httpHandler_1, ref string_6, false);

            string[] array = new string[]
            {
                ""
            };
            if (captchaDialog2.ShowDialog() == DialogResult.OK)
            {
                array[0] = captchaDialog2.txtCaptcha.Text;
            }
            captchaDialog2.Dispose();
            return(array);
        }
        private string[] ShowCaptchaDialog(HttpHandler httpHandler, ref string _status, bool _auto, bool usetwocap = false)
        {
            if (_auto)
            {
                var      captchaDialog1 = new CaptchaDialog(httpHandler, ref _status, true, usetwocap);
                string[] captcha        = captchaDialog1.ans;

                Console.Write(captcha);
                captchaDialog1.Dispose();
                return(captcha);
            }
            else
            {
                var      captchaDialog = new CaptchaDialog(httpHandler, ref _status);
                string[] captcha       = { "" };

                if (captchaDialog.ShowDialog() == DialogResult.OK)
                {
                    captcha[0] = captchaDialog.txtCaptcha.Text;
                }
                captchaDialog.Dispose();
                return(captcha);
            }
        }