예제 #1
0
 // Propagate section name change to presets
 private void SyncSection(string oldName, string name)
 {
     Sections.ChangeKey(Sections[oldName], name);
     foreach (var preset in Presets)
     {
         Dictionary <string, string> section;
         if (preset.Values.TryGetValue(oldName, out section))
         {
             preset.Values.Remove(oldName);
             preset.Values.Add(name, section);
         }
     }
 }