public UDSHandler(ProjectHandler project, XmlElement source)
        {
            Parent = project;
            Contracts = new List<ContractHandler>();
            AllContracts = new List<ContractHandler>();

            XmlHelper ph = new XmlHelper(project.Preference);
            List<string> list = new List<string>();
            foreach (XmlElement e in ph.GetElements("Property/Contract"))
            {
                string name = e.GetAttribute("Name");
                list.Add(name);
            }

            XmlHelper h = new XmlHelper(source);
            foreach (XmlElement contractElement in h.GetElements("Contract"))
            {
                ContractHandler ch = new ContractHandler(contractElement);

                if (list.Contains(ch.Name))
                    Contracts.Add(ch);

                AllContracts.Add(ch);
            }
        }
        public ContractNodeHandler(TreeNode node, ContractHandler contract)
        {
            this.IsFirstClick = true;

            Node = node;
            Contract = contract;
        }
        internal PackageHandler(ContractHandler contract, XmlElement packageDefinition)
        {
            this.Contract = contract;
            this.Name = packageDefinition.GetAttribute("Name");

            _service = new List<string>();

            XmlHelper ph = new XmlHelper(packageDefinition);
            foreach (XmlElement each in ph.GetElements("Service"))
            {
                string serviceName = each.GetAttribute("Name");
                _service.Add(serviceName);
            }
        }
 internal ContractTestForm(ContractHandler contract)
 {
     InitializeComponent();
     _contract = contract;
 }
 internal JoinableContractNodeHandler(TreeNode node, ContractHandler contract)
     : base(node, contract)
 {
 }
 internal void JoinProject(ContractHandler contract)
 {
     List<ContractHandler> cs = new List<ContractHandler>();
     cs.Add(contract);
     JoinProjects(cs);
 }
 internal static PackageHandler CreateNew(ContractHandler contract, string packageName)
 {
     return new PackageHandler(contract, packageName);
 }
 internal PackageHandler(ContractHandler contract, string name)
 {
     this.Contract = contract;
     this.Name = name;
 }