示例#1
0
文件: Program.cs 项目: uzigula/Styles
        static void Main(string[] args)
        {
            var controller = new IndexController();
            controller.IndexFile(@"data\TestData.txt");

            var output = new Output();
            output.Print(controller.IndexedLines);
        }
示例#2
0
        static void Main(string[] args)
        {
            var controller = new IndexController();
            var output     = new Output();

            controller.IndexedLines.ItemAdded += output.OnItemIndexed;

            controller.IndexFile(@"data\TestData.txt");
        }
示例#3
0
        static void Main(string[] args)
        {
            var controller = new IndexController();

            controller.IndexFile(@"data\TestData.txt");

            var output = new Output();

            output.Print(controller.IndexedLines);
        }