public void LoadConfiguration(ConfigurePluginEventArgs cpea) { XmlElement fromElement = cpea.GetMyNode(this.PluginName); if (fromElement != null) { this.Enabled = bool.Parse(fromElement.GetAttribute("enabled")); } }
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")); var inPomodoroStatusNode = (XmlElement)fromElement.SelectSingleNode("inPomodoroStatus"); inPomodoroTextTemplate = inPomodoroStatusNode.InnerText; } }
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 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); } } }