Example #1
0
 private void BrowseButton_Click(object sender, EventArgs e)
 {
     if (Directory.Exists(SavePathTextBox.Text))
     {
         SaveFolderBrowser.SelectedPath = SavePathTextBox.Text;
     }
     if (SaveFolderBrowser.ShowDialog() == DialogResult.OK)
     {
         SavePathTextBox.Text = SaveFolderBrowser.SelectedPath;
     }
 }
Example #2
0
 private void BrowseButton_Click(object sender, EventArgs e)
 {
     try
     {
         if (Directory.Exists(SavePathTextBox.Text))
         {
             SaveFolderBrowser.SelectedPath = SavePathTextBox.Text;
         }
         if (SaveFolderBrowser.ShowDialog() == DialogResult.OK)
         {
             SavePathTextBox.Text = SaveFolderBrowser.SelectedPath;
         }
     }
     catch (Exception ex) { ReportError(ex.Message, false); }
 }