コード例 #1
0
        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);
            }
        }
コード例 #2
0
        public ContractNodeHandler(TreeNode node, ContractHandler contract)
        {
            this.IsFirstClick = true;

            Node = node;
            Contract = contract;
        }
コード例 #3
0
        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);
            }
        }
コード例 #4
0
 internal ContractTestForm(ContractHandler contract)
 {
     InitializeComponent();
     _contract = contract;
 }
コード例 #5
0
 internal JoinableContractNodeHandler(TreeNode node, ContractHandler contract)
     : base(node, contract)
 {
 }
コード例 #6
0
 internal void JoinProject(ContractHandler contract)
 {
     List<ContractHandler> cs = new List<ContractHandler>();
     cs.Add(contract);
     JoinProjects(cs);
 }
コード例 #7
0
 internal static PackageHandler CreateNew(ContractHandler contract, string packageName)
 {
     return new PackageHandler(contract, packageName);
 }
コード例 #8
0
 internal PackageHandler(ContractHandler contract, string name)
 {
     this.Contract = contract;
     this.Name = name;
 }