示例#1
0
        private void BTNsearch_Click(object sender, EventArgs e)
        {
            int number;

            if (TXTsearch.Text.Trim() == "")
            {
                return;
            }
            sitem = new Gnudbsearch(TXTsearch.Text);
            CMBpageno.Items.Clear();
            if (Int32.TryParse(sitem.page, out number))
            {
                number = number / 50;
                for (int i = 1; i <= number; i++)
                {
                    CMBpageno.Items.Add(i.ToString());
                }
            }
            searchgnudb();
        }
示例#2
0
文件: Form1.cs 项目: nowen3/Ntag
 private void BTNsearch_Click(object sender, EventArgs e)
 {
     int number;
     if (TXTsearch.Text.Trim() == "")
     {
         return;
     }
     sitem = new Gnudbsearch(TXTsearch.Text);
     CMBpageno.Items.Clear();
     if (Int32.TryParse(sitem.page, out number))
     {
         number = number / 50;
         for (int i = 1; i <= number; i++)
             CMBpageno.Items.Add(i.ToString());
     }
     searchgnudb();
 }