public ConfigurePluginEventArgs GetEventArgs() { if (this.eventArgs == null) { this.eventArgs = new ConfigurePluginEventArgs(this.document); } return this.eventArgs; }
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 LoadConfiguration(ConfigurePluginEventArgs cpea) { this.configuredVictims.Clear(); XmlElement fromElement = cpea.GetMyNode(this.PluginName); if (fromElement != null) { foreach (XmlElement node in fromElement.SelectNodes("process")) { string name = node.GetAttribute("name"); this.configuredVictims.Add(name); } } }
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 LoadConfiguration(ConfigurePluginEventArgs cpea) { XmlElement fromElement = cpea.GetMyNode(this.PluginName); if (fromElement != null) { this.Enabled = bool.Parse(fromElement.GetAttribute("enabled")); this.ShowInTaskBar = bool.Parse(fromElement.GetAttribute("showInTaskBar")); this.AlwaysOnTop = bool.Parse(fromElement.GetAttribute("alwaysOnTop")); } }
public void LoadConfiguration(ConfigurePluginEventArgs cpea) { XmlElement fromElement = cpea.GetMyNode(this.PluginName); if (fromElement != null) { this.Enabled = bool.Parse(fromElement.GetAttribute("enabled")); } }
public void SaveConfiguration(ConfigurePluginEventArgs cpea) { var pluginElement = cpea.CreateNewPluginNode(this.PluginName); pluginElement.SetAttribute("enabled", this.Enabled.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 LoadConfiguration(ConfigurePluginEventArgs cpea) { XmlElement fromElement = cpea.GetMyNode(this.PluginName); if (fromElement != null) { this.Enabled = bool.Parse(fromElement.GetAttribute("enabled")); this.soundSettings = new SoundSettings() { PlayRewindSound = bool.Parse(fromElement.GetAttribute("playRewindSound")), PlayTickingSound = bool.Parse(fromElement.GetAttribute("playTickingSound")), PlayRingSound = bool.Parse(fromElement.GetAttribute("playRingSound")), }; } }
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 LoadConfiguration(ConfigurePluginEventArgs cpea) { XmlElement fromElement = cpea.GetMyNode(this.PluginName); if (fromElement != null) { this.Enabled = bool.Parse(fromElement.GetAttribute("enabled")); var inPomodoroStatusNode = (XmlElement)fromElement.SelectSingleNode("inPomodoroStatus"); inPomodoroTextTemplate = inPomodoroStatusNode.InnerText; } }