public void ShowCaptchaRequest(PhoneApplicationPage parentPage, CaptchaUserRequest captchaUserRequest, Action <CaptchaUserResponse> callback) { this._captchaUserRequest = captchaUserRequest; this._parentPage = parentPage; this._callback = callback; this.Visibility = Visibility.Visible; this.CaptchaBox.Text = string.Empty; this.CaptchaImage.Source = ((ImageSource) new BitmapImage(new Uri(captchaUserRequest.Url))); }
private void CaptchaRequest(CaptchaUserRequest captchaUserRequest, Action <CaptchaUserResponse> action) { ((Control)this).Focus(); if (this._captchaRequestControl == null) { return; } this._captchaRequestControl.ShowCaptchaRequest((PhoneApplicationPage)this, captchaUserRequest, action); }