Esempio n. 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (location == null)
     {
         MessageBox.Show("Insert a file!", "No file found!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
         return;
     }
     button3.Enabled    = false;
     interest           = SearchParser.startSearch(location, textBox2.Text);
     results.DataSource = new List <string>();
     if (interest == null)
     {
         MessageBox.Show("We couldn't find what you were looking for.", "No results found!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
     }
     else
     {
         results.DataSource = interest.ShowAliasJobs();
         button3.Enabled    = true;
     }
 }
Esempio n. 2
0
 private void button3_Click(object sender, EventArgs e)
 {
     SearchParser.printResults(interest);
     MessageBox.Show("File: " + interest.getName() + "_Alias.txt has been saved.");
 }