private void btnCopyFiles_Click(object sender, EventArgs e) { try { ValidateDirectories(); FileManipulation.CopyDirectory(txtSource.Text, txtTarget.Text, OnProgressListener); } catch (Exception ex) { MessageBox.Show(ex.Message); } }