Beispiel #1
0
 private void LoginComplete()
 {
     ApplicationBar.IsVisible = true;
     Global.AccessToken       = Btn_LogInFacebook.CurrentSession.AccessToken;
     image.Visibility         = System.Windows.Visibility.Visible;
     SB_Rotation.Begin();
 }
        private async void Btn_Prev_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                CurrentPage--;
                if (CurrentPage < 0)
                {
                    Btn_Prev.IsEnabled = false;
                    CurrentPage        = 0;
                    return;
                }
                else
                {
                    image.Visibility = System.Windows.Visibility.Visible;
                    SB_Rotation.Begin();
                    Btn_Next.IsEnabled = true;
                    var list = await ConnectServiceHelper.LoadPlayer(CurrentPage);

                    if (list != null)
                    {
                        ListPlayer = list;
                        ListBox_Player.DataContext = ListPlayer;
                    }
                    else
                    {
                        Btn_Prev.IsEnabled = false;
                        image.Visibility   = System.Windows.Visibility.Collapsed;
                        SB_Rotation.Stop();
                    }
                }
            }
            catch { }
        }
Beispiel #3
0
        private async void LoadListChallenge()
        {
            try
            {
                image.Visibility = System.Windows.Visibility.Visible;
                SB_Rotation.Begin();

                List_Challenge = await ConnectServiceHelper.GetChallenges(Global.AccessToken);

                ListChallenge.DataContext = List_Challenge;
            }
            catch { }
        }
 void ShowGame()
 {
     if (Global.CurrentUser != null)
     {
         Information            = "Chosen Player whose you want challenger!";
         Grid_Player.Visibility = System.Windows.Visibility.Visible;
         Btn_Next_Click(null, null);
         image.Visibility = System.Windows.Visibility.Visible;
         SB_Rotation.Begin();
         Text_Info.Text       = "Chosen Player ! ! !";
         Btn_Login.Visibility = System.Windows.Visibility.Collapsed;
     }
     Information = "Login to Game by Facebook Account!";
 }
Beispiel #5
0
 private void SB_Rotation_Completed(object sender, EventArgs e)
 {
     image.Visibility = System.Windows.Visibility.Visible;
     SB_Rotation.Begin();
 }