Пример #1
0
        public static void printResults(SearchInterest sI)
        {
            string filename = sI.getName() + "_Alias.txt";

            using (System.IO.StreamWriter file =
                       new System.IO.StreamWriter(@filename))
            {
                foreach (string alias in sI.ShowAliasJobs())
                {
                    file.WriteLine(alias);
                }
            }
        }
Пример #2
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;
     }
 }