public static ISurvey Build(SurveyTypes type) { ISurvey survey; switch (type) { case SurveyTypes.EmailSurvey: survey = new EmailSurvey(); break; default: throw new Exception("Invalid Survey Type"); } return(survey); }
public void ReloadSurveyTypes() { SurveyTypes.Clear(); LoadSurveyTypes(); }