예제 #1
0
 static void Main(string[] args)
 {
     try
     {
         Console.WriteLine("Please type the report address:");
         string file = Console.ReadLine();
         Console.WriteLine("Please type the id:");
         int id = int.Parse(Console.ReadLine());
         AutoUpload au = new AutoUpload();
         au.StartUpload(file, id);
     }
     catch(Exception ex)
     {
         Console.WriteLine(ex.Message);
         Console.ReadLine();
     }
 }
예제 #2
0
 static void Main(string[] args)
 {
     try
     {
         Console.WriteLine("Please type the report address:");
         string file = Console.ReadLine();
         Console.WriteLine("Please type the id:");
         int        id = int.Parse(Console.ReadLine());
         AutoUpload au = new AutoUpload();
         au.StartUpload(file, id);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
         Console.ReadLine();
     }
 }