1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using System.Windows;
- namespace Saga.PlugIn.CreateFacility
- {
- /// <summary>
- /// WinTipMissFamily.xaml 的交互逻辑
- /// </summary>
- public partial class WinTipExisted
- {
- public WinTipExisted(string id)
- {
- InitializeComponent();
- m_id = id;
- Tip = $"BIMID:{id}";
- this.DataContext = this;
- }
- private string m_id;
- private string m_Tip;
- public string Tip
- {
- get { return m_Tip; }
- set { m_Tip = value; }
- }
- #region Action
- private void ButtonNext_OnClick(object sender, RoutedEventArgs e)
- {
- this.DialogResult = true;
- }
- private void ButtonCopy_OnClick(object sender, RoutedEventArgs e)
- {
- Clipboard.SetDataObject(m_id);
- }
- private void ButtonFocus_OnClick(object sender, RoutedEventArgs e)
- {
- CreateFacilityRevitUtils.FocusFacility(m_id);
- }
- #endregion
- }
- }
|