private void method_4(List <KeyValuePair <Control, bool> > list) { this.aisinoDataSet_1 = new AisinoDataSet(); this.aisinoDataSet_1.AllPageNum = this.aisinoDataSet_0.AllPageNum; this.aisinoDataSet_1.AllRows = this.aisinoDataSet_0.AllRows; this.aisinoDataSet_1.CurrentPage = this.aisinoDataSet_0.CurrentPage; this.aisinoDataSet_1.PageSize = this.aisinoDataSet_0.PageSize; list.Add(new KeyValuePair <Control, bool>(this.cbCurPage, this.cbCurPage.Enabled)); list.Add(new KeyValuePair <Control, bool>(this.cbPageSize, this.cbPageSize.Enabled)); list.Add(new KeyValuePair <Control, bool>(this.btnNextPage, this.btnNextPage.Enabled)); list.Add(new KeyValuePair <Control, bool>(this.btnPrePage, this.btnPrePage.Enabled)); }
private void method_1(AisinoDataSet aisinoDataSet_2) { if (aisinoDataSet_2.CurrentPage > 1) { this.btnPrePage.Enabled = true; } else { this.btnPrePage.Enabled = false; } if (aisinoDataSet_2.CurrentPage < aisinoDataSet_2.AllPageNum) { this.btnNextPage.Enabled = true; } else { this.btnNextPage.Enabled = false; } if (aisinoDataSet_2.AllPageNum > 1) { this.chkShowAll.Enabled = true; this.cbCurPage.Enabled = true; this.cbCurPage.Items.Clear(); for (int i = 1; i <= aisinoDataSet_2.AllPageNum; i++) { this.cbCurPage.Items.Add(i.ToString()); } } else { if (!this.chkShowAll.Checked) { this.chkShowAll.Enabled = false; } this.cbCurPage.Enabled = false; } this.lblPageSize.Text = aisinoDataSet_2.PageSize.ToString(); this.lblCurPage.Text = aisinoDataSet_2.CurrentPage.ToString(); this.lblTotalPage.Text = aisinoDataSet_2.AllPageNum.ToString(); this.lblTotal.Text = aisinoDataSet_2.AllRows.ToString(); }