Exemplo n.º 1
0
 /// <summary>
 /// 点击浏览文件夹目录, 并选择要运行的文件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Browse_Click(object sender, EventArgs e)
 {
     if (FileSelectorBrowserDialog.ShowDialog() == DialogResult.OK)
     {
         this.FileSelectorPath      = Path.GetFullPath(this.FileSelectorBrowserDialog.FileName);
         this.SelectedFilePath.Text = this.FileSelectorPath;
     }
 }
Exemplo n.º 2
0
 private void browser_Click(object sender, EventArgs e)
 {
     if (FileSelectorBrowserDialog.ShowDialog() == DialogResult.OK)
     {
         this.ScreenShotPath          = this.FileSelectorBrowserDialog.SelectedPath;
         this.ScreenShotFilePath.Text = this.ScreenShotPath;
     }
 }