예제 #1
0
 public EditBuildProfile(IEditorProfile profile, ValueStore store) : base(store)
 {
     foreach (var option in this)
     {
         option.SetEditorProfile(profile);
     }
 }
예제 #2
0
        /// <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);
                }
            }
        }