예제 #1
0
 private void btnDirectFolder_Click(object sender, EventArgs e)
 {
     OpenFolderDialog dialog = new OpenFolderDialog();
     if (dialog.ShowDialog(this) == DialogResult.OK)
     {
         lblDirect.Text = dialog.Folder.TrimEnd(System.IO.Path.DirectorySeparatorChar) + System.IO.Path.DirectorySeparatorChar;
     }
 }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            OpenFolderDialog dialog = new OpenFolderDialog();

            dialog.Title = (VariableInfo.Value as DirectoryInfo)?.FullName;

            if (!dialog.ShowDialog())
                return;

            VariableInfo.Value = new DirectoryInfo(dialog.FileName);
        }
예제 #3
0
 private void button2_Click(object sender, EventArgs e)
 {
     OpenFolderDialog dialog = new OpenFolderDialog();
     DialogResult res = dialog.ShowDialog(this);
     if (res == DialogResult.Cancel)
     {
         return;
     }
     lstDirectories.Items.Add(dialog.Folder);
     m_colLogDirectories.Add(dialog.Folder);
 }
예제 #4
0
 private void buttonImpDir_Click(System.Object sender, System.EventArgs e)
 {
     OpenFolderDialog openFolderDialog = new OpenFolderDialog();
     if (openFolderDialog.ShowDialog() == DialogResult.OK)
     {
         this.textBoxImpDir.Text = openFolderDialog.SelectedPath;
         this.textBoxImpFile.Text = "";
         this.m_impFileName = openFolderDialog.SelectedPath;
         this.m_importFile = false;
     }
 }