Пример #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Process was started");
            ProcessHandler processHandler = new ProcessHandler();

            processHandler.StartProcess();

            State state = processHandler.States[1];

            Console.WriteLine("Process restarted from second step");
            processHandler.GoToState(state);

            processHandler.StartProcess();

            Console.ReadKey();
        }