示例#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);
        }
示例#2
0
 public IndexBuilder()
 {
     Index = new IndexInfo();
 }
示例#3
0
 public IndexBuilder()
 {
     Index = new IndexInfo();
 }