Ejemplo n.º 1
0
        public void Run()
        {
            while (true)
            {
                string[] data        = Console.ReadLine().Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
                var      commandName = data[0];

                if (commandName == "END")
                {
                    return;
                }

                try
                {
                    var command = commandInterpreter.InterpreteData(commandName, data);
                    command.Execute();
                }
                catch (Exception ae)
                {
                    Console.WriteLine(ae.Message);
                }
            }
        }