Ejemplo n.º 1
0
        private void PinBox_GotFocus(object sender, RoutedEventArgs e)
        {
            PinBox.Visibility  = Visibility.Collapsed;
            PinText.Visibility = Visibility.Visible;

            PinText.Focus(FocusState.Keyboard);
        }
Ejemplo n.º 2
0
 private void AuthWebBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
 {
     if (this.AuthWebBrowser.Url.OriginalString == "https://api.twitter.com/oauth/authorize")
     {
         Regex rg = new Regex("<code>(\\d+)</code>");
         Match m  = rg.Match(this.AuthWebBrowser.DocumentText);
         if (m.Success)
         {
             PinString    = m.Result("${1}");
             PinText.Text = m.Result("${1}");
             PinText.Focus();
         }
     }
 }