static void Main(string[] args) { var controller = new IndexController(); controller.IndexFile(@"data\TestData.txt"); var output = new Output(); output.Print(controller.IndexedLines); }
static void Main(string[] args) { var controller = new IndexController(); var output = new Output(); controller.IndexedLines.ItemAdded += output.OnItemIndexed; controller.IndexFile(@"data\TestData.txt"); }
static void Main(string[] args) { var controller = new IndexController(); controller.IndexFile(@"data\TestData.txt"); var output = new Output(); output.Print(controller.IndexedLines); }