private void Save()
        {
            LogFiles pc = new LogFiles();

            pc.Files = Logs.ToList();
            if (_cfg.AppSettings.Settings.AllKeys.Contains(ConfigConstants.FileLogs) == true)
            {
                _cfg.AppSettings.Settings[ConfigConstants.FileLogs].Value = pc.GetSerialized();
            }
            else
            {
                _cfg.AppSettings.Settings.Add(ConfigConstants.FileLogs, pc.GetSerialized());
            }

            _cfg.Save(ConfigurationSaveMode.Modified);
            ConfigurationManager.RefreshSection("appSettings");
        }
        private void Save()
        {
            LogFiles pc = new LogFiles();
            pc.Files = Logs.ToList();
            if (_cfg.AppSettings.Settings.AllKeys.Contains(ConfigConstants.FileLogs) == true)
                _cfg.AppSettings.Settings[ConfigConstants.FileLogs].Value = pc.GetSerialized();
            else
                _cfg.AppSettings.Settings.Add(ConfigConstants.FileLogs, pc.GetSerialized());

            _cfg.Save(ConfigurationSaveMode.Modified);
            ConfigurationManager.RefreshSection("appSettings");
        }