示例#1
0
 /// <summary>
 /// Maps a value to a radio button.
 /// </summary>
 /// <param name="radioButton"></param>
 /// <param name="value"></param>
 public void MapButtonValue(RadioButton radioButton, object value)
 {
     if (RadioButtons.Contains(radioButton) && !_RadioButtonValues.Any(r => radioButton == r.RadioButton))
     {
         var radioButtonValue = new RadioButtonValue(radioButton, value);
         HookRadioButton(radioButton);
         _RadioButtonValues.Add(radioButtonValue);
     }
 }