예제 #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
        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();
                }
            }
        }