Exemple #1
0
        private void OnLayoutRestored(string layout)
        {
            var existing = _config.GetValue(Sections.GENERAL, Keys.LAST_LAYOUT);

            _config.SetValue(Sections.GENERAL, Keys.LAST_LAYOUT, layout);
            _config.Persist();
            if (existing == layout)
            {
                return;
            }

            _trayIcon.ShowBalloonTipFor(
                10000,
                "Tip",
                $"The layout '{layout}' can be quickly restored by double-clicking the Ghoul icon",
                ToolTipIcon.Info
                );
        }
Exemple #2
0
 public void Add(string key, string value)
 {
     _iniFile.SetValue(_section, key, value);
 }