/**
          <summary>Creates a new radiobutton within the given document context.</summary>
        */
        public RadioButton(
      string name,
      DualWidget[] widgets,
      string value
      )
            : base(name, widgets[0])
        {
            Flags = EnumUtils.Mask(
            EnumUtils.Mask(Flags, FlagsEnum.Radio, true),
            FlagsEnum.NoToggleToOff,
            true
            );

              FieldWidgets fieldWidgets = Widgets;
              for(int index = 1, length = widgets.Length; index < length; index++)
              {fieldWidgets.Add(widgets[index]);}

              Value = value;
        }
Exemple #2
0
        /**
          <summary>Creates a new radiobutton within the given document context.</summary>
        */
        public RadioButton(
      string name,
      DualWidget[] widgets,
      string value
      )
            : base(name,
        widgets[0])
        {
            FlagsEnum flags = Flags; flags |= FlagsEnum.Radio; flags |= FlagsEnum.NoToggleToOff; Flags = flags;

              FieldWidgets fieldWidgets = Widgets;
              for(
            int index = 1,
              length = widgets.Length;
            index < length;
            index++
            )
              {fieldWidgets.Add(widgets[index]);}

              Value = value;
        }