private static DPSNodeSetting Load() { DPSNodeSetting tmp = null; try { string json = File.ReadAllText(fileName); tmp = JsonConvert.DeserializeObject<DPSNodeSetting>(json); } catch(Exception e) { tmp = new DPSNodeSetting(); } return tmp; }
public static void Reload() { instance = Load(); }