コード例 #1
0
 private void merge_destination_browse_btn_Click(object sender, EventArgs e)
 {
     if (Folder_Browser_Dialog.ShowDialog() == DialogResult.OK)
     {
         Properties.Settings.Default.merge_destination = Folder_Browser_Dialog.SelectedPath;
         Destination.Text = Properties.Settings.Default.merge_destination;
     }
 }
コード例 #2
0
 public FolderBrowserDialog get_folderbrowserdialog()
 {
     if (InvokeRequired)
     {
         return((FolderBrowserDialog)Invoke(new Func <FolderBrowserDialog>(() => get_folderbrowserdialog())));
     }
     else
     {
         if (Folder_Browser_Dialog.ShowDialog() == DialogResult.OK)
         {
             return(Folder_Browser_Dialog);
         }
         else
         {
             return(null);
         }
     }
 }