private SetMutuallyExclusiveChoiceWithMaster ( int _Value, int _MasterValue, |
||
_Value | int | |
_MasterValue | int | |
_Choices | ||
return | void |
private void SetMutuallyExclusiveChoiceWithMaster( int _Value, int _MasterValue, CheckBox[] _Choices )
{
bool IsMasterChecked = (_Value & _MasterValue) != 0;
_Choices[0].Checked = IsMasterChecked;
_Value = _Value & ~_MasterValue;
for ( int i=1; i < _Choices.Length; i++ )
_Choices[i].Checked = i == _Value;
}