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(); } }
public GraphMaker(Stream output, Library lib) { this.lib = lib; this.output = output; writer = new StreamWriter(output); }
/// <summary> /// Creates a new imdb service /// </summary> /// <param name="library">The library to write to</param> public Imdb(Library library) { Library = library; }