Exemple #1
0
        private static IndexInfo ExtractIndex()
        {
            IndexInfo index = null;
            // Load the file
            OpenFileDialog dlg = new OpenFileDialog();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                using (StreamReader sr = new StreamReader(File.OpenRead(dlg.FileName)))
                {
                    string       line = string.Empty;
                    IndexBuilder info = new IndexBuilder();
                    while ((line = sr.ReadLine()) != null)
                    {
                        info.ProcessLine(line);
                    }
                    index = info.Index;
                }
            }
            return(index);
        }
Exemple #2
0
 public IndexBuilder()
 {
     Index = new IndexInfo();
 }
Exemple #3
0
 public IndexBuilder()
 {
     Index = new IndexInfo();
 }