예제 #1
0
        private async void getBalance()
        {
            double balance = 0;
            string title   = null;

            if (radioButton2Captcha.IsChecked == true)
            {
                _2Captcha twoCaptcha = new _2Captcha(Manager.myKey, Manager.siteKey);
                balance = await twoCaptcha.getBalance();

                title = "2Captcha";
            }
            else if (radioButtonAntiCaptcha.IsChecked == true)
            {
                AntiCaptcha antiCaptcha = new AntiCaptcha(Manager.myKey, Manager.siteKey);
                balance = antiCaptcha.getBalance();
                title   = "Anti-Captcha";
            }

            await this.ShowMessageAsync(title, "Balance " + balance, MessageDialogStyle.Affirmative);
        }