WinSelectFileFloder.xaml.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. using System.ComponentModel;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows;
  9. using System.Windows.Controls;
  10. using System.Windows.Data;
  11. using System.Windows.Documents;
  12. using System.Windows.Input;
  13. using System.Windows.Media;
  14. using System.Windows.Media.Imaging;
  15. using System.Windows.Navigation;
  16. using System.Windows.Shapes;
  17. using Exception = System.Exception;
  18. namespace SAGA.MBI.Test
  19. {
  20. /// <summary>
  21. /// WinParameterDic.xaml 的交互逻辑
  22. /// </summary>
  23. public partial class WinRenameConfig : INotifyPropertyChanged
  24. {
  25. public WinRenameConfig()
  26. {
  27. InitializeComponent();
  28. this.DataContext = this;
  29. }
  30. #region Binding
  31. private string m_ReferenceFilePath;
  32. public string ReferenceFilePath
  33. {
  34. get { return m_ReferenceFilePath; }
  35. set
  36. {
  37. m_ReferenceFilePath = value;
  38. PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(ReferenceFilePath)));
  39. }
  40. }
  41. private string m_RevitDirs;
  42. public string RevitDirs
  43. {
  44. get { return m_RevitDirs; }
  45. set
  46. {
  47. m_RevitDirs = value;
  48. PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(RevitDirs)));
  49. }
  50. }
  51. #endregion
  52. public event PropertyChangedEventHandler PropertyChanged;
  53. private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
  54. {
  55. try
  56. {
  57. }
  58. catch (Exception exception)
  59. {
  60. Console.WriteLine(exception);
  61. }
  62. this.DialogResult = true;
  63. }
  64. }
  65. }