Exemple #1
0
        public RSResponseGroup(string name, string flags)
        {
            this.Name = name;
            char[] splitters = { ' ' };
            foreach (var flagName in flags.Split(splitters, System.StringSplitOptions.RemoveEmptyEntries))
            {
                switch (flagName)
                {
                case "permitrepeats":
                    this.flags |= RSResponseGroupFlags.PermitRepeats;
                    break;

                case "sequential":
                    this.flags |= RSResponseGroupFlags.Sequential;
                    break;

                case "norepeat":
                    this.flags |= RSResponseGroupFlags.NoRepeat;
                    break;

                default:
                    // we don't know this flag
                    break;
                }
            }
        }
Exemple #2
0
 public RSResponseGroup(string name, RSResponseGroupFlags flags)
 {
     this.Name  = name;
     this.flags = flags;
 }