Exemplo n.º 1
0
 //search button
 private void button1_Click(object sender, EventArgs e)
 {
     Debug.Write("you entered :" + searchTB.Text);
     //cm.suggest(searchTB.Text);
     if (searchTB.Text.Trim() == "")
     {
         MessageBox.Show("Please enter something");
         return;
     }
     cm.search(searchTB.Text);
     search_data_recieved = false;
     scrollpanel.Controls.Clear();
     loading_search.Show();
     //loadscrollpanel();
 }
 //search button
 private void button1_Click(object sender, EventArgs e)
 {
     Debug.Write("you entered :" + searchTB.Text);
     //cm.suggest(searchTB.Text);
     if (searchTB.Text.Trim() == "")
     {
         MessageBox.Show("Please enter something");
         return;
     }
     if (settings_listbox.CheckedItems.Count == 0)
     {
         MessageBox.Show("Please choose at least one data source in 'settings'");
         return;
     }
     String[] temp = new String[5];
     settings_listbox.CheckedItems.CopyTo(temp, 0);
     cm.search(searchTB.Text, temp);
     search_data_recieved = false;
     scrollpanel.Controls.Clear();
     loading_search.Show();
     //loadscrollpanel();
 }