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(); }
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(); }