public static Dictionary <string, MessageSet> LoadDict() { Dictionary <string, MessageSet> dictionary = new Dictionary <string, MessageSet>(); foreach (MessageSet current in MessageSet.Load()) { dictionary.Add(current.SetKey, current); } return(dictionary); }
public static MessageSet Get(int autoID) { return((from p in MessageSet.Load() where p.AutoID.Equals(autoID) select p).First <MessageSet>()); }
public static MessageSet Get(string key) { return((from p in MessageSet.Load() where p.SetKey.Equals(key) select p).First <MessageSet>()); }
public static IList <MessageSet> Load(UserType userType) { return((from p in MessageSet.Load() where p.ToType == userType.ToString() select p).ToList <MessageSet>()); }