예제 #1
0
 private void OraCliPathSelectBTN_Click(object sender, EventArgs e)
 {
     A2cwFBD.ShowDialog();
     if (!String.IsNullOrEmpty(A2cwFBD.SelectedPath))
     {
         oraCli.Text = A2cwFBD.SelectedPath;
     }
 }
예제 #2
0
 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);
         }
     }
 }