Beispiel #1
0
        public static void PopulateConfigurationSettings()
        {
            var parser = new BpServiceConfigParser();

            if (!App.HasServiceAsked)
            {
                App.HasServiceAsked = parser.GetLoaded();
            }
        }
Beispiel #2
0
        public static void WriteConfig()
        {
            var parser = new BpServiceConfigParser();

            if (App.HasServiceAsked)
            {
                parser.AllValues[LoadedKey] = "1";
            }

            var sb = new StringBuilder();

            foreach (var tuple in parser.AllValues)
            {
                sb.AppendLine(WriteConfigurationValue(tuple.Key, tuple.Value));
            }

            File.WriteAllText(BpServiceConfigPath, sb.ToString());
        }