Example #1
0
        /// <summary>
        /// Loads the <see cref="EmoticonInfoManager"/> from file.
        /// </summary>
        /// <param name="filePath">The file path to load from.</param>
        public static EmoticonInfoManager Load(string filePath)
        {
            var r = GenericValueReader.CreateFromFile(filePath, _rootNodeName);

            var ret = new EmoticonInfoManager();

            ret.Read(r);

            return(ret);
        }
Example #2
0
 /// <summary>
 /// Initializes the <see cref="EmoticonInfoManager"/> class.
 /// </summary>
 static EmoticonInfoManager()
 {
     _instance = Load(ContentPaths.Build);
 }