Beispiel #1
0
        protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings)
        {
            if (id == Constants.System.Root.ToInvariantString())
            {
                var api   = new ProductionsApiController();
                var nodes = new TreeNodeCollection();
                foreach (var production in api.GetAll())
                {
                    var node = CreateTreeNode(production.Id.ToString(), "-1", queryStrings, production.ProductionName);
                    nodes.Add(node);
                }

                return(nodes);
            }

            throw new NotImplementedException();
        }
        protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings)
        {
            if (id == Constants.System.Root.ToInvariantString())
            {
                var api = new ProductionsApiController();
                var nodes = new TreeNodeCollection();
                foreach (var production in api.GetAll())
                {
                    var node = CreateTreeNode(production.Id.ToString(), "-1", queryStrings, production.ProductionName);
                    nodes.Add(node);
                }

                return nodes;
            }

            throw new NotImplementedException();
        }