示例#1
0
 public void Load()
 {
     try
     {
         using (FileStream fs = File.Open(Statics.SettingsPath, FileMode.Open))
         {
             DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(MeldiiSettings));
             Self = (MeldiiSettings)serializer.ReadObject(fs);
             Debug.WriteLine("AddonLibaryPathAddonLibaryPath: " + Self.AddonLibaryPath);
         }
     }
     catch (Exception)
     {
         Debug.WriteLine("Error loading settings.json");
     }
 }
示例#2
0
 public void Load()
 {
     try
     {
         using (FileStream fs = File.Open(Statics.SettingsPath, FileMode.Open))
         {
             DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(MeldiiSettings));
             Self = (MeldiiSettings)serializer.ReadObject(fs);
             Debug.WriteLine("AddonLibaryPathAddonLibaryPath: " + Self.AddonLibaryPath);
         }
     }
     catch (Exception)
     {
         Debug.WriteLine("Error loading settings.json");
     }
 }