示例#1
0
        private void btn_detail_Click(object sender, EventArgs e)
        {
            UrlFormat urlFormat = new UrlFormat()
            {
                UrlName = txt_Urls.Text,
                UrlScan = this.UrlScan,
            };

            using (FormScanDetail formFileScanDetail = new FormScanDetail(urlFormat))
            {
                formFileScanDetail.ShowDialog();
            }
        }
示例#2
0
        private void FileListView_DoubleClick(object sender, EventArgs e)
        {
            if (FileListView.Items.Count < 1)
            {
                return;
            }

            if (FileListView.SelectedObject is FileFormat fileFormat)
            {
                switch (fileFormat.FileState)
                {
                case VirusTotalState.Finished:
                    using (FormScanDetail formFileScanDetail = new FormScanDetail(fileFormat))
                    {
                        formFileScanDetail.ShowDialog();
                    }
                    break;
                }
            }
        }