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 FillAllTypesInto(Profile destination) { foreach (var pair in _instances) { destination.FillTypeInto(pair.Key, pair.Value); } }
public void FillDefault(Profile profile) { if (string.IsNullOrEmpty(DefaultInstanceKey)) { return; } Instance defaultInstance = GetInstance(DefaultInstanceKey); if (defaultInstance == null) { Parent.Log.RegisterError(210, DefaultInstanceKey, PluginType); } profile.FillTypeInto(PluginType, defaultInstance); }