예제 #1
0
 private void BrowseBT_Click(object sender, EventArgs e)
 {
     if (BrowseDialog.ShowDialog() == DialogResult.OK)
     {
         DirTB.Text = BrowseDialog.SelectedPath;
     }
 }
예제 #2
0
        public Form1()
        {
            InitializeComponent();
            var ting = new BrowseDialog();

            if (ting.ShowDialog() == DialogResult.OK)
            {
                var test = ting.SelectedFileNameUriEncoded;
            }
        }
예제 #3
0
 private void BrowseExec(object sender, ExecutedRoutedEventArgs e)
 {
     BrowseDialog.FileName = PathPattern;
     if (BrowseDialog.ShowDialog().GetValueOrDefault(false))
     {
         PathPattern = BrowseDialog.FileName;
     }
     if (PathEditor != null)
     {
         PathEditor.Focus();
     }
 }