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(); } }
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; } } }