WinModeCheck.xaml.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. using System.ComponentModel;
  5. using System.IO;
  6. using System.Linq;
  7. using System.Windows;
  8. using Microsoft.Win32;
  9. using SAGA.DotNetUtils;
  10. using SAGA.DotNetUtils.Extend;
  11. using System.Windows.Forms;
  12. namespace Saga.PlugIn.ModelCheck
  13. {
  14. /// <summary>
  15. /// WinModeCheckSetting.xaml 的交互逻辑
  16. /// </summary>
  17. public partial class WinModeCheck
  18. {
  19. public WinModeCheck(VMModelCheck viewmodel)
  20. {
  21. InitializeComponent();
  22. this.DataContext = viewmodel;
  23. }
  24. #region BindingProperty
  25. #endregion
  26. #region Action
  27. private void ButtonNext_OnClick(object sender, RoutedEventArgs e)
  28. {
  29. this.DialogResult = true;
  30. }
  31. #endregion
  32. private void SelectFile_OnClick(object sender, RoutedEventArgs e)
  33. {
  34. FolderBrowserDialog dialog = new FolderBrowserDialog();
  35. dialog.Description = "请选择文件路径";
  36. if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
  37. {
  38. txtPath.Text = dialog.SelectedPath;
  39. }
  40. }
  41. }
  42. }