private void setProfile(Profile profile) { lock (_locker) { _currentProfile = new Profile(profile.Name); profile.FillAllTypesInto(_currentProfile); if (!ReferenceEquals(profile, _default)) { _default.FillAllTypesInto(_currentProfile); } } }
public void CopyDefaults(Type basicType, Type templatedType, PluginFamily family) { _default.CopyDefault(basicType, templatedType, family); foreach (var pair in _profiles) { pair.Value.CopyDefault(basicType, templatedType, family); } if (!string.IsNullOrEmpty(CurrentProfile)) { Profile theSourceProfile = getProfile(CurrentProfile); theSourceProfile.FillAllTypesInto(_currentProfile); } _default.FillAllTypesInto(_currentProfile); }
private void setProfileDefaults(GraphLog log) { if (string.IsNullOrEmpty(_defaultProfileName)) { return; } if (!_profiles.ContainsKey(_defaultProfileName)) { log.RegisterError(280, _defaultProfileName); } Profile profile = getProfile(_defaultProfileName); profile.FillAllTypesInto(_default); }