Beispiel #1
0
        // Display the personnal informations about the user
        public void DisplayData()
        {
            DataBox.Children.RemoveAt(0);
            var data = new DonneesView(User.currentUser.Iduser.ToString());

            DataBox.Children.Add(data);
            FavorisButton.BackgroundColor     = Color.FromHex("3367b0");
            AchievementButton.BackgroundColor = Color.FromHex("#3367b0");
            DataButton.BackgroundColor        = Color.FromHex("#4D97FF");
        }
Beispiel #2
0
        // Initialize the content of the xaml page
        private void Init(string idUser)
        {
            // return the user with the associated id
            List <User> listUser = Process.GetUser(idUser);

            pseudo.Text     = listUser[0].Pseudo;
            pseudo.FontSize = InitPseudo(listUser[0].Pseudo);
            avatar.Source   = Constants.userImg + listUser[0].Photo;
            var data = new DonneesView(User.currentUser.Iduser.ToString());

            DataBox.Children.Add(data);
            DataButton.BackgroundColor        = Color.FromHex("#4D97FF");
            AchievementButton.BackgroundColor = Color.FromHex("#3367b0");
            FavorisButton.BackgroundColor     = Color.FromHex("3367b0");
            retour.Source = Constants.appImg + "retourBleu.png";
        }