private void OraCliPathSelectBTN_Click(object sender, EventArgs e) { A2cwFBD.ShowDialog(); if (!String.IsNullOrEmpty(A2cwFBD.SelectedPath)) { oraCli.Text = A2cwFBD.SelectedPath; } }
private void SQLPathSelectBTN_Click(object sender, EventArgs e) { A2cwFBD.ShowDialog(); if (!String.IsNullOrEmpty(A2cwFBD.SelectedPath)) { sqlPath.Text = A2cwFBD.SelectedPath; try { String[] files = Directory.GetFiles(A2cwFBD.SelectedPath); SQLFiles = new FileInfo[files.Length]; for (int i = 0; i < files.Length; i++) { SQLFiles[i] = new FileInfo(files[i]); FileView.Items.Add(SQLFiles[i].Name); } } catch (Exception) { MessageBox.Show(this, "文件路径读取异常!", "异常", MessageBoxButtons.OK, MessageBoxIcon.Error); } } }