private void CreateLearnCellCommand(LearnCellCommandModel source)
 {
     var learnCellCommand = new LearnCellCommand(_commands, _grid, _robot,
                                                 source.CommandIdIfCellColorBlack, source.CommandIdIfCellColorWhite)
     {
         Id = source.Id
     };
 }
        /// <summary>
        /// Метод
        /// </summary>
        /// <param name="source"></param>
        private BaseRobotCommand CreateLearnCellCommand(CommandModel source)
        {
            if ((CommandName)source.CurrentName != CommandName.Move)
            {
                throw new ArgumentException(GetMessage("изучения"));
            }

            var learnCellCommand = new LearnCellCommand(_commands, grid, robot,
                                                        source.CurrentOneParameter, source.CurrentTwoParameter)
            {
                Id = source.CommandId
            };

            return(learnCellCommand);
        }