Exemplo n.º 1
0
        public void SaveSettings()
        {
            var settings = activeTransfers;

            if (Instance == null)
            {
                settings = ReadSettingsOrDefault();
            }
            SettingsFileParser.WriteSettings(settings);
        }
Exemplo n.º 2
0
 private static HashSet <string> ReadSettingsOrDefault()
 => SettingsFileParser.ReadSettings() ?? new HashSet <string>
 {
     GoodsTransfer.CommercialGoods.Id
 };