예제 #1
0
 static void Main(string[] args)
 {
     Stream output = new FileStream("./filename", FileMode.OpenOrCreate);
     Library lib = new Library();
     var g = new GraphMaker(output, lib);
     if (args.Length > 0)
     {
         if (args[0].Equals("Movies"))
             g.MovieGraph();
         else if (args[0].Equals("Actors"))
             g.ActorGraph();
     }
 }
예제 #2
0
 public GraphMaker(Stream output, Library lib)
 {
     this.lib = lib;
     this.output = output;
     writer = new StreamWriter(output);
 }
예제 #3
0
파일: Imdb.cs 프로젝트: thexa4/moviegraph
 /// <summary>
 /// Creates a new imdb service
 /// </summary>
 /// <param name="library">The library to write to</param>
 public Imdb(Library library)
 {
     Library = library;
 }