public EditBuildProfile(IEditorProfile profile, ValueStore store) : base(store) { foreach (var option in this) { option.SetEditorProfile(profile); } }
/// <summary> /// Set the editor profile for the option and all of its variants and children. /// </summary> /// <param name="profile"></param> public void SetEditorProfile(IEditorProfile profile) { EditorProfile = profile; if (variants != null) { foreach (var variant in variants) { variant.SetEditorProfile(profile); } } if (children != null) { foreach (var child in children) { child.SetEditorProfile(profile); } } }