Пример #1
0
        private static void Main(string[] args)
        {
            var xml        = SimulationCases.LoadXmlAsync(SimulationCases.Case01).Result;
            var simulation = new RentalContractSimulationFromXml(xml);
            var simulator  = new Simulator(simulation);

            SimulatorPrinter.PrintInfo("blablabla balbla");

            simulator.Start();

            Console.WriteLine("---- END ----");
            Console.ReadKey();
        }
Пример #2
0
        private static void NextCmd(ProcessInstance process)
        {
            SimulatorPrinter.PrintInfo("T: transaction view. <other> continue");
            //Console.Write("T: transaction view. <other> continue", Color.LawnGreen);
            var key = Console.ReadKey(true);

            if (key.Key == ConsoleKey.T)
            {
                PrintTransactions(process);
            }
            else
            {
                Console.WriteLine("\n -#--#--#--#--#--#--#--#--#--#--#--#--#--#--#--#- \n", Color.MediumSeaGreen);
            }
        }