private void bkTrashCollection_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e) { BadFiles = 0; CollectTrash(); } private void CollectTrash() { foreach (DataGridViewRow Row in tbl_MediaDataGridView.Rows) { string FilePath = Row.Cells[3].Value.ToString(); if (!File.Exists(FilePath)) { MissingFiles.Add(FilePath); Row.DefaultCellStyle.BackColor = Color.Yellow; BadFiles += 1; } } }
File.Exists
BackgroundWorker
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)