if (line.StartsWith(Utilities.SCRIPT_COMMAND_CMD, StringComparison.InvariantCultureIgnoreCase)) { command = GetCommand(line, Utilities.SCRIPT_COMMAND_CMD, clearScriptPath); } private APDUCommand GetCommand(string scriptLine, string commandType, string clearScriptPath) { APDUCommand command = new APDUCommand() { CommandType = commandType }; command.CommandBody = ReplaceByRegularExpression(scriptLine, commandType, string.Empty); string line; bool containsScriptLine = false; StreamReader reader = null; try { reader = new StreamReader(clearScriptPath); while ((line = reader.ReadLine()) != null) { if (line.Contains(scriptLine) || containsScriptLine) { if (containsScriptLine == true) { if (line.StartsWith("(")) { command.CommandBody += @"\"; } } containsScriptLine = true; } } } finally { if (reader != null) { reader.Close(); } } return command; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)