Ejemplo n.º 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);
            }
        }
        public ContractNodeHandler(TreeNode node, ContractHandler contract)
        {
            this.IsFirstClick = true;

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