Exemplo n.º 1
0
        private void OpenDestinationDialog_Click(object sender, EventArgs e)
        {
            var result = DestinationDialog.ShowDialog();

            if (result == DialogResult.OK)
            {
                CopyDestination.Text = DestinationDialog.SelectedPath;
            }
        }
        private void BrowseDestinationButton_Click(object sender, EventArgs e)
        {
            DestinationDialog.ShowNewFolderButton = true;
            DialogResult result = DestinationDialog.ShowDialog();

            if (result == DialogResult.OK)
            {
                DestinationTextBox.Text = DestinationDialog.SelectedPath;
            }
        }
Exemplo n.º 3
0
 private void DestinatonPick_Click(object sender, EventArgs e)
 {
     if (!DirectoryChkbx.Checked)
     {
         if (DestinationDialog.ShowDialog(this) == DialogResult.OK)
         {
             DestinationLbl.Text    = DestinationDialog.FileName;
             DirectoryChkbx.Enabled = false;
         }
     }
     else if (DirectoryDialog2.ShowDialog(this) == DialogResult.OK)
     {
         DestinationLbl.Text    = DirectoryDialog2.SelectedPath;
         DirectoryChkbx.Enabled = false;
     }
 }