Esempio n. 1
0
 public frmMain()
 {
     InitializeComponent();
     Index = new List<string>();
     IndexFileList = new List<string>();
     SearchResultsTT = new ToolTip();
     TextNotesReader reader = new TextNotesReader(@"C:\_download\test.txt");
     Index = reader.ReadAll();
     StringBuilder sb = new StringBuilder();
     foreach (string entry in Index)
         sb.Append(entry + Program.EOL_WINDOWS + Program.EOL_WINDOWS);
     txtIndex.Text = sb.ToString();
 }
Esempio n. 2
0
 private void selectfilesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmFileListSelector fileListSelector = new frmFileListSelector();
     fileListSelector.ShowDialog();
     Index.Clear();
     IndexFileList.Clear();
     StringBuilder sb = new StringBuilder();
     foreach (string fileName in fileListSelector.SelectedFiles)
     {
         TextNotesReader reader = new TextNotesReader(fileName);
         Index.AddRange(reader.ReadAll());
         foreach (string entry in Index)
             sb.Append(entry + Program.EOL_WINDOWS + Program.EOL_WINDOWS);
     }
     txtIndex.Text = sb.ToString();
 }