Beispiel #1
0
        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);
        }
Beispiel #2
0
 public static MessageSet Get(int autoID)
 {
     return((from p in MessageSet.Load()
             where p.AutoID.Equals(autoID)
             select p).First <MessageSet>());
 }
Beispiel #3
0
 public static MessageSet Get(string key)
 {
     return((from p in MessageSet.Load()
             where p.SetKey.Equals(key)
             select p).First <MessageSet>());
 }
Beispiel #4
0
 public static IList <MessageSet> Load(UserType userType)
 {
     return((from p in MessageSet.Load()
             where p.ToType == userType.ToString()
             select p).ToList <MessageSet>());
 }