Ejemplo n.º 1
0
        public HomePage()
        {
            InitializeComponent();
            var tapImage = new TapGestureRecognizer();

            tapImage.Tapped += OnActionsClicked;
            imgHome.GestureRecognizers.Add(tapImage);
            userBtn.Text  = profilo.utente.name + " " + profilo.utente.surname;
            labelEmo.Text = "Vedo che al momento provi " + emozione;
            if (richieste != null)
            {
                RequestsPage.SetRequests(richieste);
                this.CheckRequests();
            }
        }
Ejemplo n.º 2
0
        public HomePage(Profilo pro, string emo, Dictionary <int, Profilo> req, List <Utente> friends, List <Post> posts)
        {
            InitializeComponent();
            var tapImage = new TapGestureRecognizer();

            tapImage.Tapped += OnActionsClicked;
            imgHome.GestureRecognizers.Add(tapImage);
            profilo = pro;
            ModifyPage.SetProfile(profilo);
            ProfilePage.SetMineProfile(profilo);
            userBtn.Text = profilo.utente.name + " " + profilo.utente.surname;
            if (emo != null)
            {
                emozione      = emo;
                labelEmo.Text = "Vedo che al momento provi " + emozione;
            }
            if (friends != null)
            {
                amici = friends;
                ListOfFriendsPage.SetFriends(amici);
                ProfilePage.SetFriends(amici);
            }
            if (posts != null)
            {
                listaPost = posts;
                BoardPage.SetPosts(listaPost);
            }

            ListOfFriendsPage.SetFriends(amici);
            if (req != null)
            {
                richieste = req;
                RequestsPage.SetRequests(richieste);
                this.CheckRequests();
            }
        }