private void _LoadCaptcha(string captchaImg)
 {
     try
     {
         if (!string.IsNullOrEmpty(captchaImg))
         {
             Deployment.Current.Dispatcher.BeginInvoke(() =>
             {
                 try
                 {
                     var client = new VKWebClient();
                     client.GetByteData(captchaImg, _ShowCaptcha);
                 }
                 catch (Exception ex)
                 {
                     Debug.WriteLine("_LoadCaptcha failed in CaptchaPage: " + ex.Message);
                 }
             });
         }
     }
     catch (Exception ex)
     {
         Debug.WriteLine("_LoadCaptcha failed " + ex.Message);
     }
 }
Example #2
0
        private void _LoadCaptcha()
        {
            try
            {
                if (!string.IsNullOrEmpty(_captchaImg))
                {
                    Deployment.Current.Dispatcher.BeginInvoke(() =>
                    {
                        try
                        {
                            var client = new VKWebClient();
                            client.GetByteData(_captchaImg, _ShowCaptcha);
                        }
                        catch (Exception ex)
                        {
                            Debug.WriteLine("_LoadCaptcha failed in AuthPage: " + ex.Message);
                        }
                    });
                }
            }
            catch (Exception ex)
            {
                Debug.WriteLine("_LoadCaptcha failed " + ex.Message);

                MessageBox.Show(AppResources.InternalApiError);
            }
        }