예제 #1
0
        public void LoadPageCtr(PageModel page)
        {
            if (page.Count == 0) page.Count = 1;
            _pageModel = page;
            lblPageInfo.Text = string.Format("{0}/{1}", page.Index, page.Count);

            if (page.Count == 1)
            {
                btnPageUp.Enabled = false;
                btnPageDown.Enabled = false;
            }
            else if (page.Index == page.Count)
            {
                btnPageUp.Enabled = false;
                btnPageDown.Enabled = true;
            }
            else if (page.Index == 1)
            {
                btnPageUp.Enabled = true;
                btnPageDown.Enabled = false;
            }
            else
            {
                btnPageDown.Enabled = true;
                btnPageUp.Enabled = true;
            }
        }
예제 #2
0
 public void ImpBindData(PageModel pageModel)
 {
     //DataTable dt = CommonDAL.ListByPageAppLog(string.Empty, pageModel);
     //dgvItems.AutoGenerateColumns = false;
     //dgvItems.DataSource = dt;
     //SimplePageCtrl.Initialize().LoadPageCtr(pageModel);
     //ClearLoadingMsg(pnlLoading);
 }
예제 #3
0
 private void LoadLogData(PageModel pageModel)
 {
     //LoadingMsg(pnlLoading, AppMessage.Loading, "正在加载...");
     //this.Invoke(InvokeBindData, pageModel);
 }