public SetResult Set(ScormSet set) { // strip off cmi. for test harness string element = set.GetIdentifier().Replace("cmi.", ""); string commandstring = "Set " + element + " " + "\"" + set.GetValue() + "\""; parser.Process(commandstring); Console.WriteLine("API_1484_11.SetValue(\"" + set.GetIdentifier() + "\",\"" + set.GetValue() + "\");"); return(SetResult.Ok); }
public SetResult Set(ScormSet set) { // set = mConverter.Map2004_to_12(set); string commandstring = set.GetIdentifier() + " " + set.GetValue(); commandstring = commandstring.Replace("._count", ".length"); commandstring = commandstring.Substring(4); commandstring = "Set " + commandstring; parser.Process(commandstring); Console.WriteLine(commandstring); return(SetResult.Ok); }