Exemple #1
0
        static void Main(string[] args)
        {
            XMLDecoder xd  = new XMLDecoder();
            XDocument  xml = XDocument.Load("ProjectList");

            Console.Write("ProjectList:\n");
            List <string> project = xd.projectListResult(xml.ToString());

            foreach (string s in project)
            {
                Console.Write("{0}\n", s);
            }

            XDocument           xml1     = XDocument.Load("DependencyResult");
            List <ElemRelation> relation = xd.typeDependencyResult(xml1.ToString());

            Console.Write("\n\n Type Dependency Result:\n");
            foreach (ElemRelation s in relation)
            {
                Console.Write("{0} = {1} > {2}\n", s.fromName, s.relationType, s.toName);
            }

            List <ElemPackage> package = xd.packageDependencyResult(xml1.ToString());

            Console.Write("\n\nPackage Dependency Result:\n");

            foreach (ElemPackage s in package)
            {
                Console.Write("{0} ==>{1}\n", s.filenamefrom, s.filenameto);
            }
        }
 public List<string> getProjectList(string project)
 {
     XMLDecoder xd=new XMLDecoder();
     return xd.projectListResult(project);
 }
        static void Main(string[] args)
        {
            XMLDecoder xd=new XMLDecoder();
            XDocument xml = XDocument.Load("ProjectList");

            Console.Write("ProjectList:\n");
            List<string> project = xd.projectListResult(xml.ToString());
            foreach (string s in project)
                Console.Write("{0}\n",s);

            XDocument xml1 = XDocument.Load("DependencyResult");
            List<ElemRelation> relation = xd.typeDependencyResult(xml1.ToString());
            Console.Write("\n\n Type Dependency Result:\n");
            foreach (ElemRelation s in relation)
                Console.Write("{0} = {1} > {2}\n", s.fromName, s.relationType, s.toName);

            List<ElemPackage> package = xd.packageDependencyResult(xml1.ToString());
            Console.Write("\n\nPackage Dependency Result:\n");

            foreach (ElemPackage s in package)
                Console.Write("{0} ==>{1}\n", s.filenamefrom, s.filenameto);
        }
        public List <string> getProjectList(string project)
        {
            XMLDecoder xd = new XMLDecoder();

            return(xd.projectListResult(project));
        }