Пример #1
0
    static void Main(string[] args)
       {

           TypeModel types = new TypeModel();
           types.addType("X", "XFile");
           types.addType("X", "YFile");
           types.addType("Y", "ZFile");
           TypeView tv = new TypeView();
           tv.Display();
           Console.Write("\n\n");

           
    }
Пример #2
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();
 }
Пример #3
0
    //----< populate TypeModel and UsingModel using TypeController >---------
    //
    //  Assumes CollectCSharpFileReferences() has already been called
    //
    public void FindDefinedTypes()
    {
      //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");

      TypeController tc = new TypeController();
      FileModel fm = new FileModel();
      foreach (string file in fm.files())
      {
        fm.CurrentFile = file;
        tc.findDefinedTypes(file);
      }
      TypeView typev = new TypeView();
      typev.Display();

    }
Пример #4
0
 public void Displaysummary()
 {
     FileView fvs = new FileView();
     TypeView tvs = new TypeView();
     DependencyView dvs = new DependencyView();
     fvs.displaySum();
     tvs.displaySum();
     dvs.displaySum();
 }