private void deleteButton_Click(object sender, EventArgs e) { DataGridView dgv = audioPathDataGridView; DGVManipulation.DeleteDGVRow(dgv); numberFiles.Text = audioPathDataGridView.RowCount.ToString(); }
// delete button click - deletes row from not empty dgv; refresh view private void deleteRow_Click(object sender, EventArgs e) { DataGridView dgv = imgPathDataGridView; DGVManipulation.DeleteDGVRow(dgv); numberFiles.Text = imgPathDataGridView.RowCount.ToString(); if (imgPathDataGridView.RowCount == 0) { pictureBox.Image = null; pictureBox.Refresh(); } }