WinSelectFileFloder.xaml.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using System;
  2. using System.ComponentModel;
  3. using System.Windows;
  4. using Exception = System.Exception;
  5. namespace Saga.PlugIn.Other
  6. {
  7. /// <summary>
  8. /// WinParameterDic.xaml 的交互逻辑
  9. /// </summary>
  10. public partial class WinRenameConfig : INotifyPropertyChanged
  11. {
  12. public WinRenameConfig()
  13. {
  14. InitializeComponent();
  15. this.DataContext = this;
  16. }
  17. #region Binding
  18. private string m_ReferenceFilePath;
  19. public string ReferenceFilePath
  20. {
  21. get { return m_ReferenceFilePath; }
  22. set
  23. {
  24. m_ReferenceFilePath = value;
  25. PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(ReferenceFilePath)));
  26. }
  27. }
  28. private string m_RevitDirs;
  29. public string RevitDirs
  30. {
  31. get { return m_RevitDirs; }
  32. set
  33. {
  34. m_RevitDirs = value;
  35. PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(RevitDirs)));
  36. }
  37. }
  38. #endregion
  39. public event PropertyChangedEventHandler PropertyChanged;
  40. private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
  41. {
  42. try
  43. {
  44. }
  45. catch (Exception exception)
  46. {
  47. Console.WriteLine(exception);
  48. }
  49. this.DialogResult = true;
  50. }
  51. }
  52. }