private void bStartScan_Click(object sender, EventArgs e) { try { DirectoryInfo di = new DirectoryInfo(tbFolderPath.Text); if (di.Exists) { string _path = tbFolderPath.Text; if (_modalForm == null) { _modalForm = new modalScanProgress(); _progressChangeEH = new ProgressChangedEventHandler(_modalForm.backgroundWorker1_ProgressChanged); } InitialPopulateTreeView(_path, _progressChangeEH); } } catch (Exception E) { MessageBox.Show(_LocRM.GetString("Error_PathNotFound") + ": [" + tbFolderPath.Text + "]\n" + E.Message); } }
private void bStartScan_Click(object sender, EventArgs e) { try { DirectoryInfo di = new DirectoryInfo(tbFolderPath.Text); if (di.Exists) { string _path = tbFolderPath.Text; if (_modalForm == null) { _modalForm = new modalScanProgress(); _progressChangeEH = new ProgressChangedEventHandler(_modalForm.backgroundWorker1_ProgressChanged); } InitialPopulateTreeView(_path, _progressChangeEH); } } catch (Exception E) { MessageBox.Show(_LocRM.GetString("Error_PathNotFound")+": ["+tbFolderPath.Text+"]\n"+E.Message); } }