private void SetRadioButton(TrainingVO.TrainingStatus status){ if(status == TrainingVO.TrainingStatus.Passed){ _passedRadioButton.Checked = true; }else{ _failedRadioButton.Checked = true; } }
private TrainingVO.TrainingStatus RadioButtonToTrainingStatusEnum(){ TrainingVO.TrainingStatus status = TrainingVO.TrainingStatus.Passed; if(_passedRadioButton.Checked){ status = TrainingVO.TrainingStatus.Passed; }else{ status = TrainingVO.TrainingStatus.Failed; } return status; }
private TrainingVO.TrainingStatus StringToTrainingStatus(String s) { TrainingVO.TrainingStatus status = TrainingVO.TrainingStatus.Passed; switch (s) { case "Passed": status = TrainingVO.TrainingStatus.Passed; break; case "Failed": status = TrainingVO.TrainingStatus.Failed; break; } return(status); }