Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public IndexBuilder()
 {
     Index = new IndexInfo();
 }
Exemplo n.º 3
0
 public IndexBuilder()
 {
     Index = new IndexInfo();
 }