Example #1
0
        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"));
            }
        }
Example #3
0
        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")),
         };
     }
 }
Example #5
0
        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);
                }
            }
        }