Ejemplo n.º 1
0
        private void CarModel_GameEnd(object sender, GameEndEventArgs e)
        {
            var fileMgr = new FileReadWriteManager();

            fileMgr.WriteOutputToFile(e.CarFoundResults.ToList());
            Environment.Exit(0);
        }
Ejemplo n.º 2
0
        public void Run()
        {
            var fileMgr     = new FileReadWriteManager();
            var inputValues = fileMgr.GetInputParamsFromCSV();

            if (inputValues.IsError)
            {
                System.Console.ReadKey();
            }
            else
            {
                Task.Factory.StartNew(() => ProcessCarFinderInBackground(inputValues));
            }
        }