Beispiel #1
0
 protected void start()
 {
     for (int x = 0; x < filenames.Count; x++)
     {
         Invoke(new Action(() => { progress.Text = "ANALYSING " + (x + 1) + "/" + filenames.Count; }));
         Invoke(new Action(() => { currentFile.Text = filenames[x]; }));
         Invoke(new Action(() => { txtLog.AppendText("Analysing file " + filenames[x] + "\r\n"); }));
         DateTime begin = DateTime.UtcNow;
         idaHandler.startAnalysis(filenames[x], baseDir, output);
         DateTime end = DateTime.UtcNow;
         Invoke(new Action(() => { txtLog.AppendText("Analysing took " + end.Subtract(begin) + "\r\n"); }));
     }
     Invoke(new Action(() => { progress.Text = "DONE"; }));
 }
Beispiel #2
0
        protected void start()
        {
            Invoke(new Action(() => { progress.Text = "SEARCHING ALL THE FILES"; }));
            Invoke(new Action(() => { txtLog.AppendText("SEARCHING THROUGH ALL DIRECTORIES\r\n"); }));
            Invoke(new Action(() => { currentFile.Text = ""; }));
            addDirectory(filenames, baseDir);
            Invoke(new Action(() => { txtLog.AppendText("ALL FILES FOUND\r\n"); }));

            for (int x = 0; x < filenames.Count; x++)
            {
                Invoke(new Action(() => { progress.Text = "ANALYSING " + (x + 1) + "/" + filenames.Count; }));
                Invoke(new Action(() => { currentFile.Text = filenames[x]; }));
                Invoke(new Action(() => { txtLog.AppendText("Analysing " + filenames[x] + "\r\n"); }));
                DateTime begin = DateTime.UtcNow;
                idaHandler.startAnalysis(filenames[x], baseDir, output);
                DateTime end = DateTime.UtcNow;
                Invoke(new Action(() => { txtLog.AppendText("  took " + end.Subtract(begin) + " seconds\r\n"); }));
            }
            Invoke(new Action(() => { progress.Text = "DONE"; }));
        }