Example #1
0
 public void Login_in()
 {
     if (api.IsAccessTokenValid())
     {
         NavigationService.Navigate(new Uri("/Default.xaml", UriKind.Relative));
     }
     else
     {
         NavigationService.Navigate(new Uri("/Login_renren.xaml", UriKind.Relative));
     }
 }
Example #2
0
        void RenRenFriendList_Loaded(object sender, RoutedEventArgs e)
        {
            if (!api.IsAccessTokenValid() && Back_Key == 1)
            {
                Back_Key = -1;
                NavigationService.Navigate(new Uri("/Login_renren.xaml", UriKind.Relative));
            }
            else if (!api.IsAccessTokenValid() && Back_Key == -1)
            {
                ;
            }

            else
            {
                api.GetFriends(renren_GetFriendsCompletedHandler);
            }
        }