예제 #1
0
 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());
 }
예제 #2
0
        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);
        }