private void SetRadioButton(PersonVO.Sex gender){ if(gender == PersonVO.Sex.MALE){ _maleRadioButton.Checked = true; } else{ _femaleRadioButton.Checked = true; } }
private PersonVO.Sex RadioButtonToSexEnum(){ PersonVO.Sex gender = PersonVO.Sex.MALE; if(_maleRadioButton.Checked){ gender = PersonVO.Sex.MALE; } else{ gender = PersonVO.Sex.FEMALE; } return gender; }
private PersonVO.Sex RadioButtonToSexEnum() { PersonVO.Sex gender = PersonVO.Sex.MALE; if (_male_button.Checked) { gender = PersonVO.Sex.MALE; } else { if (_female_button.Checked) { gender = PersonVO.Sex.FEMALE; } } return(gender); }