public async Task <TableLayoutPanel> GetLayoutPanelAsync(User i_LoggedInUser) { IFriendService friendsService = new FriendService(); var friendsList = await friendsService.GetFriendsAsync(i_LoggedInUser); Label commentLabel = new Label { Text = Resources.SelectFriendWhosePOSTsYouLikeToSee, AutoSize = true }; UsersListBox.Items.Add(i_LoggedInUser); foreach (User user in friendsList) { UsersListBox.Items.Add(user); } r_Panel.Controls.Add(commentLabel); r_Panel.Controls.Add(UsersListBox); r_Panel.Controls.Add(r_HTML_buttom); r_Panel.Controls.Add(r_Dot_button); UsersListBox.SelectedIndexChanged += personSelectedAsync; UsersListBox.SelectedIndex = 0; personSelectedAsync(null, null); r_Panel.Controls.Add(r_PostsPanel); return(r_Panel); }