Exemplo n.º 1
0
 public static bool Load()
 {
     DataContractJsonSerializer Serializer = new DataContractJsonSerializer(typeof(ConfigObject));
     FileStream Fs = File.Open(System.AppDomain.CurrentDomain.BaseDirectory + "\\Config.json", FileMode.Open);
     Data = (ConfigObject)Serializer.ReadObject(Fs);
     return true;
 } 
Exemplo n.º 2
0
        public static bool Load()
        {
            DataContractJsonSerializer Serializer = new DataContractJsonSerializer(typeof(ConfigObject));
            FileStream Fs = File.Open(System.AppDomain.CurrentDomain.BaseDirectory + "\\Config.json", FileMode.Open);

            Data = (ConfigObject)Serializer.ReadObject(Fs);
            return(true);
        }