Пример #1
0
 /// <summary>
 /// Loads the plugin settings
 /// </summary>
 public void LoadSettings()
 {
     this.settingObject = new Settings();
     if (!File.Exists(this.settingFilename)) this.SaveSettings();
     else
     {
         Object obj = ObjectSerializer.Deserialize(this.settingFilename, this.settingObject);
         this.settingObject = (Settings)obj;
     }
 }
 /// <summary>
 /// Loads the plugin settings
 /// </summary>
 private void LoadSettings()
 {
     settings = new Settings();
     if (!File.Exists(settingFilename)) SaveSettings();
     else settings = (Settings)ObjectSerializer.Deserialize(settingFilename, settings);
 }