示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LatestBooksRow.SetTitle("最近更新", "Latest Books");
     LatestBooksRow.SetBooks(BookStatBLL.GetNewestBooks(5));
     BestSellersRow.SetTitle("当前热销", "Current Bestsellers");
     BestSellersRow.SetBooks(BookStatBLL.GetHighestStarsBooks(5));
     TopRatedBooksRow.SetTitle("评分最高", "Top Rated Books");
     TopRatedBooksRow.SetBooks(BookStatBLL.GetHighestStarsBooks(5));
     Navbar.SetLinks(CategoryBLL.GetCategoryByRole(0));
 }
 public void RemoveBestSellersRow(BestSellersRow row) {
     this.Rows.Remove(row);
 }
 public void AddBestSellersRow(BestSellersRow row) {
     this.Rows.Add(row);
 }
 public BestSellersRowChangeEvent(BestSellersRow row, global::System.Data.DataRowAction action) {
     this.eventRow = row;
     this.eventAction = action;
 }