using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Forms; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; namespace formula_manage.Windows { /// /// Print.xaml 的交互逻辑 /// public partial class Print : Window { public Print() { InitializeComponent(); } private void Button_Click(object sender, RoutedEventArgs e) //SQL_DISPEN_bak路径选择按钮 { FolderBrowserDialog Dilog = new FolderBrowserDialog(); Dilog.SelectedPath = Print_path.Text; //打开目录 Dilog.ShowNewFolderButton = false; //不显示新建文件夹按钮 // if (Dilog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { Print_path.Text = Dilog.SelectedPath; //返回选择的字符串 } } } }