Beispiel #1
0
        /// <summary>
        /// Produces a specific implementation of
        /// the IMessages interface
        /// </summary>
        private IMessages MessagesFactory(Types.Enums.UILanguage language)
        {
            switch (language)
            {
            case Types.Enums.UILanguage.Danish:
                return(new MessagesDanish());

            case Types.Enums.UILanguage.English:
                return(new MessagesEnglish());

            default:
                throw new ArgumentException(nameof(MessagesFactory));
            }
        }
Beispiel #2
0
 public RunTimeSettings(IRunTimeSettingsReadOnly initialSettings)
 {
     _language = initialSettings.Language;
     _imageSet = initialSettings.ImageSet;
 }