private void BtnLDFPathBrowser_Click(object sender, EventArgs e) { try { DataVerification dataVerification = new DataVerification(this); DialogResult result = FolderBrowserDialogPaths.ShowDialog(); if (result == DialogResult.OK) { dataVerification.LDFPathVerification(); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }