/// <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; } }
public PluginUI(PluginMain pluginMain, Settings setting) { this.pluginMain = pluginMain; settingObject = setting; this.InitializeComponent(); }