public SettingCollection <TElement> AddEnabled(TElement command) { command.IsEnabled = true; EnabledEntries.TryAdd(command.Name, command); return(this); }
public void Enable(Name settingName) { if (DisabledEntries.Remove(settingName, out var setting)) { setting.IsEnabled = true; EnabledEntries.TryAdd(setting.Name, setting); } }