WinTipExisted.xaml.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System.Windows;
  2. namespace Saga.PlugIn.CreateFacility
  3. {
  4. /// <summary>
  5. /// WinTipMissFamily.xaml 的交互逻辑
  6. /// </summary>
  7. public partial class WinTipExisted
  8. {
  9. public WinTipExisted(string id)
  10. {
  11. InitializeComponent();
  12. m_id = id;
  13. Tip = $"BIMID:{id}";
  14. this.DataContext = this;
  15. }
  16. private string m_id;
  17. private string m_Tip;
  18. public string Tip
  19. {
  20. get { return m_Tip; }
  21. set { m_Tip = value; }
  22. }
  23. #region Action
  24. private void ButtonNext_OnClick(object sender, RoutedEventArgs e)
  25. {
  26. this.DialogResult = true;
  27. }
  28. private void ButtonCopy_OnClick(object sender, RoutedEventArgs e)
  29. {
  30. Clipboard.SetDataObject(m_id);
  31. }
  32. private void ButtonFocus_OnClick(object sender, RoutedEventArgs e)
  33. {
  34. CreateFacilityRevitUtils.FocusFacility(m_id);
  35. }
  36. #endregion
  37. }
  38. }