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(); }
private void StoryPanel_MouseClick(object sender, MouseEventArgs e) { PostsPanel.Focus(); ConfigPanel.Visible = false; }
private void PostsPanel_Click(object sender, EventArgs e) { PostsPanel.Focus(); ConfigPanel.Visible = false; }