示例#1
0
        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);
            }
        }
示例#2
0
 public void FillAllTypesInto(Profile destination)
 {
     foreach (var pair in _instances)
     {
         destination.FillTypeInto(pair.Key, pair.Value);
     }
 }
示例#3
0
 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);
    }