Exemplo n.º 1
0
 private void Form1_DragDrop(object sender, DragEventArgs e)
 {
     string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
     if (files.Length > 0)
     {
         MethodsDumper MethodsDumper = new MethodsDumper();
         if (MethodsDumper.DumpMethodsOf(files[0]))
         {
             MessageBox.Show("Success");
         }
         else
         {
             MessageBox.Show(MethodsDumper.excpetion.Message);
         }
     }
 }
Exemplo n.º 2
0
 static void Main(string[] args)
 {
     if (args.Length == 1)
     {
         MethodsDumper MethodsDumper = new MethodsDumper();
         if (MethodsDumper.DumpMethodsOf(args[0]))
         {
             MessageBox.Show("Success");
         }
         else
         {
             MessageBox.Show(MethodsDumper.excpetion.Message);
         }
         return;
     }
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new Form1());
 }