예제 #1
0
        private KronosConfigurationInstance()
        {
            var configFile = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData),
                                          "Madhon", "Kronos", "appSettings.json");

            Config = JsonConvert.DeserializeObject <KronosConfiguration>(File.ReadAllText(configFile)) !;
        }
예제 #2
0
 private KronosConfigurationInstance()
 {
     Config = SimpleJson.DeserializeObject <KronosConfiguration>(File.ReadAllText(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "settings.json")));
 }