Пример #1
0
 public void ExecuteCommand()
 {
     try
     {
         while (true)
         {
             SimpleCommand c = GetSimpleCommand();
             string        str;
             try
             {
                 str = ReadLine();
             }
             catch (InterruptCommandException)
             {
                 return;
             }
             c.ExecuteCommand(str);
             if (IsStudentAllInputed())
             {
                 Doc.Sudents.Add(_catcheStudent);
                 _catcheStudent = null;
             }
         }
     }
     catch (SimpleCommandErrorException)
     {
         ExecuteCommand();
     }
 }