void AddContract(TreeNode endpointNode, ContractDescription contract) { TreeNode contractNode = new ContractNode(this, contract, contract.Name, ContractIndex, ContractIndex); endpointNode.Nodes.Add(contractNode); foreach (OperationDescription operation in contract.Operations) { AddOperation(contractNode, operation); } }
void AddContract(TreeNode endpointNode,ContractDescription contract) { TreeNode contractNode = new ContractNode(this,contract,contract.Name,ContractIndex,ContractIndex); endpointNode.Nodes.Add(contractNode); foreach(OperationDescription operation in contract.Operations) { AddOperation(contractNode,operation); } }