WinTipCreateSuccess.xaml.cs 893 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System.Windows;
  2. namespace Saga.PlugIn.CreateFacility
  3. {
  4. /// <summary>
  5. /// WinTipMissFamily.xaml 的交互逻辑
  6. /// </summary>
  7. public partial class WinTipCreateSuccess
  8. {
  9. public WinTipCreateSuccess(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. #endregion
  33. }
  34. }