private void ShowBookView() { if (_BookListView == null) { _BookListView = new BookListControl(); _BookListView.Name = "BookListVIew"; _BookListView.LoadFTPRoot += LoadBookFTPRoot; _BLLBook = new BLLBook(); } this.contextPanel.Children.Clear(); this.contextPanel.Children.Add(_BookListView); _CurFormType = EnumMainToolButton.LOADBOOK; var _item = _BLLBook.LoadBookList(0, 10); _BookListView.LoadData(_item); }
private void button1_Click(object sender, EventArgs e) { BookListByPageParam param = new BookListByPageParam(); param.PageSize = 100; param.PageIndex = 0; var _item = _BLLBook.LoadBookList(0, 100); LoadBookListControl(); _UcBookList.BindingData(_item); }