Пример #1
0
        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());
        }
Пример #2
0
        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());
        }
Пример #3
0
        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);
        }
Пример #4
0
        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);
            }
        }
Пример #5
0
        public void SaveConfiguration(ConfigurePluginEventArgs cpea)
        {
            var pluginElement = cpea.CreateNewPluginNode(this.PluginName);

            pluginElement.SetAttribute("enabled", this.Enabled.ToString());
        }