/// <summary>
 ///
 /// </summary>
 /// <param name="entity"></param>
 public virtual void Copy(EntityNode entity)
 {
     // Note that the properties are used to copy the values.  This will trigger update events for any listeners.
     this.Name      = entity.Name;
     this.ImageData = entity.ImageData;
     this.EntityId  = entity.EntityId;
 }
        /// <summary>
        /// Gets the id for the specified item.
        /// </summary>
        /// <param name="item">The item.</param>
        /// <returns></returns>
        public static string GetObjectName(object item)
        {
            if (item is FolderNavNode)
            {
                FolderNavNode FolderNavNode = item as FolderNavNode;
                return(FolderNavNode.Entity.Name);
            }
            else
            {
                EntityNode entity = item as EntityNode;
                if (null != entity)
                {
                    return(entity.Name);
                }
            }

            return(String.Empty);
        }
Beispiel #3
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 public FolderNavNode()
 {
     this.entity = new EntityNode();
 }