Exemple #1
0
        private void UpdatePosts()
        {
            var position = PostsPanel.VerticalScroll.Value;
            var insta    = proxy.GetFeed(NombreUsuario.Text);

            PostsPanel.Controls.Clear();
            y = 0;
            foreach (Post item in insta.publico)
            {
                var post = new ConstructorPosts(PostsPanel, 0, y, PerfilUsuario, item, name, UpdatePosts, this).CrearObjeto();
                post.crearPanel();
                PostsPanel.Controls.Add(post.obtenerPanel());
                y += post.obtenerPanel().Height + 20;
            }
            PostsPanel.AutoScrollPosition = new Point(0, position);
            PostsPanel.Focus();
        }
Exemple #2
0
 private void StoryPanel_MouseClick(object sender, MouseEventArgs e)
 {
     PostsPanel.Focus();
     ConfigPanel.Visible = false;
 }
Exemple #3
0
 private void PostsPanel_Click(object sender, EventArgs e)
 {
     PostsPanel.Focus();
     ConfigPanel.Visible = false;
 }