Esempio n. 1
0
 public static void ClearCache()
 {
     //foreach (var p in KCore.Reflection.FilterOnlySetProperties(this))
     //    KCore.Reflection.SetValue(this, p.Name, null);
     ColumnsStruct = null;
     parameters    = null;
 }
Esempio n. 2
0
        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();
            }
        }