protected HallEntry GetHallEntry(HallSectionTypeEnum sectionType) { if (this.ListAvailableSections.IsNullOrEmpty() || !this.ListAvailableSections.ContainsKey(sectionType) || this.ListAvailableSections[sectionType].IsNullOrEmpty()) { Console.WriteLine("GetHallEntry(): No seat available!"); return(null); } return(this.ListAvailableSections[sectionType].Pop()); }
public static string HallSectionTypeToString(HallSectionTypeEnum type) { switch (type) { case HallSectionTypeEnum.CLERICAL: return("Clergé"); case HallSectionTypeEnum.COOKING: return("Cuisine"); case HallSectionTypeEnum.DISABLED: return("Handicapé"); case HallSectionTypeEnum.FULL_MEMBER: return("Membre Plein"); case HallSectionTypeEnum.GENERAL_MANAGER: return("Responsable Général"); case HallSectionTypeEnum.HEALTH_SERVICE: return("Service Santé"); case HallSectionTypeEnum.MUSIC_INSTRUMENT_SERVICE: return("Service Instrument"); case HallSectionTypeEnum.NEW_BORN: return("Nouveaux-né"); case HallSectionTypeEnum.RELIGIOUS: return("Religieux"); case HallSectionTypeEnum.SECOND_LANGUAGE: return("Seconde Langue"); case HallSectionTypeEnum.SONG_SERVICE: return("Service Chant"); case HallSectionTypeEnum.SPECIAL_GUEST: return("Invité Spécial"); case HallSectionTypeEnum.TRANSLATION_SERVICE: return("Service Traduction"); case HallSectionTypeEnum.NONE: default: return("Public"); } }