Example #1
0
 public void LoadTopPostInForum()
 {
     _presenter = new ShowViewPostUCPresenter();
     List<BoardPost> posts = _presenter.LoadPosts();
     repPosts.DataSource = posts;
     repPosts.DataBind();
 }
Example #2
0
 public void LoadTopPostInCategory()
 {
     _presenter = new ShowViewPostUCPresenter();
     List<BoardPost> posts = _presenter.LoadPostsInCate();
     Label lblDate = repPosts.FindControl("lblCreateDate") as Label;
     if (lblDate != null)
         lblDate.Text = "";
     repPosts.DataSource = posts;
     repPosts.DataBind();
 }
Example #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     _presenter = new ShowViewPostUCPresenter();
     _presenter.Init(this);
 }