public static void ClearCache() { //foreach (var p in KCore.Reflection.FilterOnlySetProperties(this)) // KCore.Reflection.SetValue(this, p.Name, null); ColumnsStruct = null; parameters = null; }
private static void LoadParameters() { string file; if (R.DebugMode) { file = System.IO.Path.Combine(R.AppPath, "config.dev.json"); if (!System.IO.File.Exists(file) && R.DebugMode) { System.IO.File.Copy(System.IO.Path.Combine(R.AppPath, "config.json"), System.IO.Path.Combine(R.AppPath, "config.dev.json")); } } else { file = System.IO.Path.Combine(R.AppPath, "config.json"); } if (System.IO.File.Exists(file)) { parameters = new PropertiesList_v1(file); } else { parameters = new PropertiesList_v1(); } }