示例#1
0
        /// <summary>
        /// Log the command in the recording.
        /// </summary>
        /// <param name="command">The text to log.</param>
        internal void LogCommand(string command)
        {
            // don't log if it is disabled
            if (_loggingDisabled == 0)
            {
                ScriptLog.AppendLine(command);
                ScriptLog.AppendLine("GO");
            }

            if (CanExecute)
            {
                ExecutionLog.AppendLine(command);
                ExecutionLog.AppendLine("GO");
            }
        }