コード例 #1
0
    /////////////////////////////////////////////////////////////
    // exercise for student:
    // private UsingModel um = new UsingModel();  
    // private DependencyModel dm = new DependencyModel();

    //----< search directory trees rooted at each input path >---------------

    public void CollectCSharpFileReferences()
    {
      List<string> paths = new List<string>(System.Environment.GetCommandLineArgs());
      paths.RemoveAt(0);
      string[] patterns = new string[1] { "*.cs" };
      bool recurse = true;
      bool makeUnique = true;
      fm.collectFiles(paths.ToArray<string>(), patterns, recurse, makeUnique);
      FileView fv = new FileView();
      bool showArgs = true;
      fv.Display(showArgs);
    }
コード例 #2
0
ファイル: FileModelTest.cs プロジェクト: Logeshkumar/Projects
    public static int Main(string[] args)
    {
      
      Console.Write("\n  Testing FileModel");
      Console.Write("\n ===================\n");

      string[] patterns = new string[1] { "*.cs" };
      FileModel fm = new FileModel();
      fm.collectFiles(args, patterns, true, true);
      List<string> fileList = fm.files();
      FileView fv = new FileView();
      fv.Display(true);
      return 0;
    }
コード例 #3
0
 public void Displaysummary()
 {
     FileView fvs = new FileView();
     TypeView tvs = new TypeView();
     DependencyView dvs = new DependencyView();
     fvs.displaySum();
     tvs.displaySum();
     dvs.displaySum();
 }