public void Merge(Profile destination) { foreach (var pair in _instances) { destination.SetDefault(pair.Key, pair.Value); } }
public void SetDefault(string profileName, Type pluginType, Instance instance) { Profile profile = getProfile(profileName); profile.SetDefault(pluginType, instance); if (profileName == _defaultProfileName) { _default.FillTypeInto(pluginType, instance); _currentProfile.FillTypeInto(pluginType, instance); } }
public void SetDefault(Type pluginType, Instance instance) { _currentProfile.SetDefault(pluginType, instance); _default.FillTypeInto(pluginType, instance); }