Esempio n. 1
0
        public void SetSelectBase(HtSelectBase selectBase)
        {
            _select = selectBase;
            label_pageIndex.Text = _select.HtPageIndex.ToString();
            label_pageSize.Text = _select.HtTotalPageCount.ToString();

            SetShow(selectBase);
        }
Esempio n. 2
0
        private void HtUcPages1_PageChanged(HtSelectBase select)
        {
            UrlSelect h_urlSelect = new UrlSelect();
            h_urlSelect.HtPageSize = select.HtPageSize;
            h_urlSelect.HtPageIndex = select.HtPageIndex;
            h_urlSelect.HtTotalPageCount = select.HtTotalPageCount;
            h_urlSelect.HtTotalRecordCount = select.HtTotalRecordCount;
            h_urlSelect.SortType = select.SortType;

            MyQuery(h_urlSelect);
        }
Esempio n. 3
0
        void SetShow(HtSelectBase select)
        {
            if (select.HtPageIndex > 1)
                linkLabel_pre.Visible = true;
            else
                linkLabel_pre.Visible = false;

            if (select.HtPageIndex < select.HtTotalPageCount)
                linkLabel_next.Visible = true;
            else
                linkLabel_next.Visible = false;
        }
Esempio n. 4
0
 public HtUcPages()
 {
     InitializeComponent();
     _select = new HtSelectBase();
 }