Exemplo n.º 1
0
 private async void btnCaptchaTestPort_Click(object sender, EventArgs e)
 {
     if (await PortTesterController.IsPortOpen(_settings.ProxyDomain, _settings.ProxyPort.ToString()))
     {
         lblCaptchaError.Text = _settings.ProxyDomain + " port " + _settings.ProxyPort + " is open!";
     }
     else
     {
         lblCaptchaError.Text = _settings.ProxyDomain + " port " + _settings.ProxyPort + " is closed!";
     }
 }
Exemplo n.º 2
0
        private async void txtEmailDomain_TextChanged(object sender, EventArgs e)
        {
            _settings.EmailDomain = txtEmailDomain.Text;

            pictureBox1.Image = Properties.Resources.PROCESS_PROCESSING;
            if (await PortTesterController.IsPortOpen(_settings.EmailDomain, "25"))
            {
                pictureBox1.Image = Properties.Resources._1475917959_button_check_green;
                Save();
            }
            else
            {
                pictureBox1.Image = Properties.Resources._1475918266_button_cross_red;
            }
        }