private void InitChild()
        {
            WindowFolderEntityCollection subFolders = _windowComponentService.GetFolderCollection(this.UniqueID.ToString());

            children = new FolderAddressNode[subFolders.Count];
            for (int i = 0; i < subFolders.Count; i++)
            {
                children[i] = new FolderAddressNode((WindowFolderEntity)subFolders[i], this);
            }
        }
 public FolderAddressNode(WindowFolderEntity entity, FolderAddressNode parent)
 {
     _windowComponentService = ServiceUnity.Container.Resolve <IWindowComponentService>();
     this._entity            = entity;
     this.parent             = parent;
 }