Esempio n. 1
0
 private void btnSelectDir_Click_1(object sender, EventArgs e)
 {
     DirChooser myDir = new DirChooser(m_docCap.CapturedDocumentLocation);
     if (myDir.ShowDialog() == DialogResult.OK)
     {
         m_docCap.CapturedDocumentLocation = myDir.directory;
         txtFileDir.Text = m_docCap.CapturedDocumentLocation;
     }
     myDir.Dispose();
 }
Esempio n. 2
0
 private void btnSelectDir_Click(object sender, EventArgs e)
 {
     DirChooser dlg = new DirChooser(txtFileDir.Text);
     if (dlg.ShowDialog() == DialogResult.OK)
         txtFileDir.Text = dlg.directory;
     this.Close();
 }