DlgTrail.xaml.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Shapes;
  14. namespace MV485.Dlg
  15. {
  16. /// <summary>
  17. /// DlgTrail.xaml 的交互逻辑
  18. /// </summary>
  19. public partial class DlgTrail : Window
  20. {
  21. public const string _prompt = " 您需要注册后,才可以使用本软件的完整功能,未注册的情况下,将不允许使用任何对抄表器的设置功能。" +
  22. "\n 如需注册,请点击<<我要注册>>复制激活码,联系我司销售人员获取注册码。";
  23. public int SelectResult { get; set; }
  24. public DlgTrail()
  25. {
  26. InitializeComponent();
  27. txtPrompt.Text = _prompt;
  28. }
  29. private void BtnTrail_Click(object sender, RoutedEventArgs e)
  30. {
  31. SelectResult = 2;
  32. this.Close();
  33. }
  34. private void BtnClose_Click(object sender, RoutedEventArgs e)
  35. {
  36. SelectResult = 0;
  37. this.Close();
  38. }
  39. private void BtnRegister_Click(object sender, RoutedEventArgs e)
  40. {
  41. SelectResult = 1;
  42. this.Close();
  43. }
  44. //------------------------------------------------
  45. }
  46. }