Example #1
0
        async void panel1_DragDrop(object sender, DragEventArgs e)
        {
            textBox2.Clear();

            files = (string[])e.Data.GetData(DataFormats.FileDrop);
            VirusTotal virusTotal = new VirusTotal(apiKey);
            await Task.Run(() =>
            {
                resultID = virusTotal.ScanFile(files[0]);
                result   = virusTotal.GetResults(resultID);
            });

            var r = ParseJSON(result);
        }