示例#1
0
 /// <inheritdoc />
 public override bool CanCreate(ContentFolder targetLocation)
 {
     return(targetLocation.CanHaveAssets);
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContentTreeNode"/> class.
 /// </summary>
 /// <param name="type">The folder type.</param>
 /// <param name="path">The folder path.</param>
 protected ContentTreeNode(ContentFolderType type, string path)
     : base(false, Editor.Instance.UI.FolderClosed12, Editor.Instance.UI.FolderOpened12)
 {
     _folder = new ContentFolder(type, path, this);
     Text    = _folder.ShortName;
 }
示例#3
0
 /// <summary>
 /// Determines whether this proxy can create items in the specified target location.
 /// </summary>
 /// <param name="targetLocation">The target location.</param>
 /// <returns><c>true</c> if this proxy can create items in the specified target location; otherwise, <c>false</c>.</returns>
 public virtual bool CanCreate(ContentFolder targetLocation)
 {
     return(false);
 }