예제 #1
0
 static void Main(string[] args)
 {
     DependencyModel DM = new DependencyModel();
     TypeModel TM = new TypeModel();
     TM.addType("X", "XFile");
     TM.addType("X", "YFile");
     TM.addType("Y", "ZFile");
     TypeView tv = new TypeView();
     tv.Display();
     Console.Write("\n\n");
     DM.addDependency("XFile", "YFile");
     DependencyView depv = new DependencyView();
     depv.Display();
 }
예제 #2
0
    //----< match tokens and usings with TypeModel >-------------------------

    public void FindDependencies()

    {
      // Console.Write("\n  --- FindDefinedTypes() shows how to integrate parser into analysis. ---");
      //Console.Write("\n  --- You will need to add rules and actions to meet requirements. ---\n");

      DependencyController dc = new DependencyController();
      FileModel fm = new FileModel();
        List<string> file = fm.files();
        Console.WriteLine();
        dc.findDependency(file);
        DependencyView depv = new DependencyView();
        depv.Display();
        
        Displaysummary();
       
      //foreach (string file in fm.files())
      //{        fm.CurrentFile = file;
        //dc.findDependency(file);
      }
예제 #3
0
 public void Displaysummary()
 {
     FileView fvs = new FileView();
     TypeView tvs = new TypeView();
     DependencyView dvs = new DependencyView();
     fvs.displaySum();
     tvs.displaySum();
     dvs.displaySum();
 }