public static void CompileFolder(string path)
        {
            string[] infiles = System.IO.Directory.GetFiles(path, "*.ssl", System.IO.SearchOption.AllDirectories);
            if (infiles.Length == 0)
            {
                MessageBox.Show("Nothing found to compile", "Warning");
                return;
            }
            BatchCompiler bc = new BatchCompiler(infiles);

            bc.Show();
        }
 public static void CompileFolder(string path)
 {
     string[] infiles = System.IO.Directory.GetFiles(path, "*.ssl", System.IO.SearchOption.AllDirectories);
     if (infiles.Length == 0) {
         MessageBox.Show("Nothing found to compile", "Warning");
         return;
     }
     BatchCompiler bc = new BatchCompiler(infiles);
     bc.ShowDialog();
     int found = infiles.Length;
     int failed = bc.failed;
     int compiled = bc.compiled;
     int skipped = found - (failed + compiled);
     MessageBox.Show(String.Format("{0} scripts found.\n{1} successfully compiled\n{2} failed to compile\n{3} skipped", found, compiled, failed, skipped));
 }