using KGIS.Framework.Utils; using Kingo.Plugin.BGResultManager.ViewModel; using System.Collections.Generic; using System.Windows; using System.Windows.Forms; namespace Kingo.Plugin.BGResultManager.View { /// /// FrmResultsExport.xaml 的交互逻辑 /// public partial class FrmResultsExport : BaseWindow { List catalogTree = null; public FrmResultsExport() { InitializeComponent(); DataContext = new ExportViewModel(); } private void btnSelectDir_Click(object sender, RoutedEventArgs e) { FolderBrowserDialog dialog = new FolderBrowserDialog(); //dialog.IsFolderPicker = true; System.Windows.Forms.DialogResult result = dialog.ShowDialog(); if (result == System.Windows.Forms.DialogResult.OK) { txtOutDir.Text = dialog.SelectedPath; } } private void btnCancel_Click(object sender, RoutedEventArgs e) { this.Close(); } } }