private void DisplayPosts()
 {
     if (posts == null)
     {
         SqlDatabase database   = new SqlDatabase();
         PostsTable  postsTable = new PostsTable(database);
         posts = postsTable.GetPendingPosts();
         UserTable userTable = new UserTable(database);
         canSeePostSettings = userTable.CanSeePostSettings(userID);
     }
     for (int i = 0; i < 20; i++)
     {
         if (posts.Count == 0)
         {
             LoadMore.Visible = false;
             return;
         }
         Post post = posts.Pop();
         PostsTableView.Rows.Add(post.GetRow(canSeePostSettings));
     }
 }