private void WebBrowserNavigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
 {
     if (webBrowser.Source.AbsolutePath == "/blank.html")
     {
         var accessInfo = new AccessInfoBag
         {
             Token = webBrowser.Source.Fragment.Substring(14, 63),
             Uid = webBrowser.Source.Fragment.Substring(103)
         };
         AccessInfoStore.Save(accessInfo);
         App.GlobalVkClient.Start(accessInfo);
         NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
     }
 }
Example #2
0
 public static void Save(AccessInfoBag obj)
 {
     IsolatedStorageSettings.ApplicationSettings[Tokenkey] = obj.Token;
     IsolatedStorageSettings.ApplicationSettings[Uidkey] = obj.Uid;
     IsolatedStorageSettings.ApplicationSettings.Save();
 }