using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using Muchinfo.PC.Common.Bosn; namespace Muchinfo.MTPClient.Resources { public class ResxManagerHelper { /// /// Saves the data. /// /// The hastable RESX. /// The ver. /// The file path. public static void SaveData(Hashtable hastableResx, ulong ver, string filePath) { var resx = new CommonResx() { ResourceHashtable = hastableResx, Version = ver }; JsonHelper.SaveData(filePath, resx, null, true); } /// /// Gets the data. /// /// The file path. /// CommonResx. public static CommonResx GetData(string filePath) { var resx = new CommonResx() { Version = 0 }; if (!File.Exists(filePath)) return resx; return JsonHelper.LoadData(filePath).FirstOrDefault(); } } }