private static IList <string> ConvertToNotifyByList(NotifyBy notifyBy) { IList <string> notifyByList = new List <string>(); NotifyByBindings.Keys.Where(n => notifyBy.HasFlag(n)).ToList().ForEach(n => notifyByList.Add(NotifyByBindings[n])); return(notifyByList); }
protected string GetNotifyLabel(NotifyBy notify) { try { return(Resource.ResourceManager.GetString("NotifyBy" + notify.ToString())); } catch { return("Unknown"); } }