public void SaveConfiguration(ConfigurePluginEventArgs cpea) { var pluginElement = cpea.CreateNewPluginNode(this.PluginName); pluginElement.SetAttribute("enabled", this.Enabled.ToString()); pluginElement.SetAttribute("showInTaskBar", this.showInTaskBar.ToString()); pluginElement.SetAttribute("alwaysOnTop", this.alwaysOnTop.ToString()); }
public void SaveConfiguration(ConfigurePluginEventArgs cpea) { var pluginElement = cpea.CreateNewPluginNode(this.PluginName); pluginElement.SetAttribute("enabled", this.Enabled.ToString()); pluginElement.SetAttribute("playRewindSound", this.soundSettings.PlayRewindSound.ToString()); pluginElement.SetAttribute("playTickingSound", this.soundSettings.PlayTickingSound.ToString()); pluginElement.SetAttribute("playRingSound", this.soundSettings.PlayRingSound.ToString()); }
public void SaveConfiguration(ConfigurePluginEventArgs cpea) { var pluginElement = cpea.CreateNewPluginNode(this.PluginName); pluginElement.SetAttribute("enabled", this.Enabled.ToString()); var inPomodoroStatusNode = pluginElement.OwnerDocument.CreateElement("inPomodoroStatus"); inPomodoroStatusNode.InnerText = inPomodoroTextTemplate; pluginElement.AppendChild(inPomodoroStatusNode); }
public void SaveConfiguration(ConfigurePluginEventArgs cpea) { var pluginElement = cpea.CreateNewPluginNode(this.PluginName); foreach (var proc in this.configuredVictims) { var processNode = cpea.Document.CreateElement("process"); processNode.SetAttribute("name", proc); pluginElement.AppendChild(processNode); } }
public void SaveConfiguration(ConfigurePluginEventArgs cpea) { var pluginElement = cpea.CreateNewPluginNode(this.PluginName); pluginElement.SetAttribute("enabled", this.Enabled.ToString()); }