Exemplo n.º 1
0
        public ITree CreateObject(params object[] args)
        {
            TableResolver        resolver     = Resolver.CreateObject(args);
            Tk5TreeTableResolver treeResolver = resolver.Convert <Tk5TreeTableResolver>();
            ITree        tree   = treeResolver.CreateTree();
            NormalDbTree dbTree = tree as NormalDbTree;

            if (dbTree != null && DataRight != null)
            {
                dbTree.DataRight = DataRight.CreateObject(resolver);
            }
            return(tree);
        }
Exemplo n.º 2
0
        public ITree CreateObject(params object[] args)
        {
            IDbDataSource source = ObjectUtil.ConfirmQueryObject <IDbDataSource>(this, args);

            ITableScheme scheme = TableScheme.CreateObject();
            NormalDbTree dbTree = new NormalDbTree(scheme, DbTree, source);

            if (DataRight != null)
            {
                dbTree.DataRight = DataRight.CreateObject(dbTree);
            }
            return(dbTree);
        }