public void Save(XmlTextWriter writer) { writer.WriteElementString("firstRoundSeconds", FirstRoundSeconds.ToString()); writer.WriteElementString("roundSeconds", RoundSeconds.ToString()); writer.WriteElementString("showNumericFeedback", ShowNumericFeedback.ToString()); writer.WriteElementString("usePreviousRoundInput", UsePreviousRoundInput.ToString()); writer.WriteElementString("rangeStart", RangeStart.ToString()); writer.WriteElementString("rangeEnd", RangeEnd.ToString()); }
public IDictionary <string, string> GetArguments() { var arguments = new Dictionary <string, string>(); arguments["first-round-seconds"] = FirstRoundSeconds.ToString(); arguments["round-seconds"] = RoundSeconds.ToString(); arguments["range-start"] = RangeStart.ToString(); arguments["range-end"] = RangeEnd.ToString(); if (ShowNumericFeedback) { arguments["numeric-feedback"] = string.Empty; } if (UsePreviousRoundInput) { arguments["previous-input"] = string.Empty; } return(arguments); }