Ejemplo n.º 1
0
    public ListElement(IListElementData data, IListElementOwner owner, string path, bool isFolder)
    {
        ElementData   = data;
        ElementOwner  = owner;
        ChildElements = new List <ListElement>();
        DisableFold   = !isFolder;
        IsGetFile     = false;

        this.IsFolder = isFolder;
        this.Path     = path;

        InstanceID = Animator.StringToHash(path);
        data.OnInit(this);

        ElementOwner.OnAddNewElement(this);
    }
Ejemplo n.º 2
0
    public ListElement(IListElementData data, IListElementOwner owner, string path, bool isFolder)
    {
        ElementData = data;
        ElementOwner = owner;
        ChildElements = new List<ListElement>();
        DisableFold = !isFolder;
        IsGetFile = false;

        this.IsFolder = isFolder;
        this.Path = path;

        InstanceID = Animator.StringToHash(path);
        data.OnInit(this);

        ElementOwner.OnAddNewElement(this);
    }