コード例 #1
0
ファイル: Form1.cs プロジェクト: astralenigma/TextParserVoR
 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;
     }
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: astralenigma/TextParserVoR
 private void button3_Click(object sender, EventArgs e)
 {
     SearchParser.printResults(interest);
     MessageBox.Show("File: " + interest.getName() + "_Alias.txt has been saved.");
 }