private void postsButton_Click(object sender, EventArgs e) { PostsFormFacade postsFacade = new PostsFormFacade(new UserWithStatistic { User = FriendsFacade.Friend }); PostsForm pf = new PostsForm(postsFacade); pf.Show(); }
// Showing Posts of User private void buttonMyPosts_Click(object sender, EventArgs e) { PostsFormFacade postsFacade = new PostsFormFacade(new UserWithStatistic { User = m_Facade.LoggedInUser }); PostsForm pf = new PostsForm(postsFacade); pf.Show(); }