using System; using System.ComponentModel; using System.Windows; using Exception = System.Exception; namespace Saga.PlugIn.Other { /// /// WinParameterDic.xaml 的交互逻辑 /// public partial class WinRenameConfig : INotifyPropertyChanged { public WinRenameConfig() { InitializeComponent(); this.DataContext = this; } #region Binding private string m_ReferenceFilePath; public string ReferenceFilePath { get { return m_ReferenceFilePath; } set { m_ReferenceFilePath = value; PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(ReferenceFilePath))); } } private string m_RevitDirs; public string RevitDirs { get { return m_RevitDirs; } set { m_RevitDirs = value; PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(RevitDirs))); } } #endregion public event PropertyChangedEventHandler PropertyChanged; private void ButtonBase_OnClick(object sender, RoutedEventArgs e) { try { } catch (Exception exception) { Console.WriteLine(exception); } this.DialogResult = true; } } }