Esempio n. 1
0
        private void tsbGoto_Click(object sender, EventArgs e)
        {
            int index;

            if (int.TryParse(tstPageIndex.Text.Trim(), out index) && index >= 1 && index <= this.Pages)
            {
                if (index == this.PageIndex)
                {
                    return;
                }
                else
                {
                    this.PageIndex = index;
                    this.Paging(sender);
                }
            }
            else
            {
                TXMessageBoxExtensions.Warning("请输入有效的页数!");
                tstPageIndex.Focus();
                tstPageIndex.SelectAll();
            }
        }
Esempio n. 2
0
 private void TXTextBox_OnImageButtonClick(object sender, EventArgs e)
 {
     TXMessageBoxExtensions.Warning("亲,该项为必填哦!");
 }