/// <summary> /// TODO: Add code to remind about saving before opening /// dialog. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnDeleteOld_Click(object sender, EventArgs e) { using (frmDeleteOldFiles OldFilesForm = new frmDeleteOldFiles(flm)) { OldFilesForm.ShowDialog(); } this.Focus(); }
private void btnDeleteOldFiles_Click(object sender, EventArgs e) { using (frmDeleteOldFiles OldFilesForm = new frmDeleteOldFiles(this.FileListManager)) { OldFilesForm.ShowDialog(this); if (OldFilesForm.FilesChanged) { PopulateForm(first_run: false); UpdateView(); } } }