private static IDictionary <String, EmailType> chargeTypes() { var types = new Dictionary <String, EmailType> { { EmailType.MoveNotification.ToString(), EmailType.MoveNotification }, }; EnumX.AllExcept(SecurityAction.UnsubscribeMoveMail) .ForEach( sa => types.Add(sa.ToString(), EmailType.SecurityAction) ); EnumX.AllValues <RemovalReason>() .ForEach( rr => types.Add(rr.ToString(), EmailType.RemovalReason) ); types.Add( EmailType.WipeNotice.ToString(), EmailType.WipeNotice ); var langs = PlainText.AcceptedLanguages(); var keys = types.Keys.ToList(); foreach (var key in keys) { var value = types[key]; types.Remove(key); foreach (var lang in langs) { var newKey = PlainText.Email[key, lang, "Subject"]; types.Add(newKey, value); } } return(types); }
public ConfigsThemeModel() { NewTheme = Theme; BrightnessList = EnumX.AllExcept(ThemeBrightness.None); ColorList = EnumX.AllExcept(ThemeColor.None); }