Ejemplo n.º 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;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Loads the plugin settings
 /// </summary>
 void LoadSettings()
 {
     settingObject = new Settings();
     if (!File.Exists(settingFilename)) SaveSettings();
     else settingObject = (Settings)ObjectSerializer.Deserialize(settingFilename, settingObject);
 }