using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; namespace MV485.Dlg { /// /// DlgTrail.xaml 的交互逻辑 /// public partial class DlgTrail : Window { public const string _prompt = " 您需要注册后,才可以使用本软件的完整功能,未注册的情况下,将不允许使用任何对抄表器的设置功能。" + "\n 如需注册,请点击<<我要注册>>复制激活码,联系我司销售人员获取注册码。"; public int SelectResult { get; set; } public DlgTrail() { InitializeComponent(); txtPrompt.Text = _prompt; } private void BtnTrail_Click(object sender, RoutedEventArgs e) { SelectResult = 2; this.Close(); } private void BtnClose_Click(object sender, RoutedEventArgs e) { SelectResult = 0; this.Close(); } private void BtnRegister_Click(object sender, RoutedEventArgs e) { SelectResult = 1; this.Close(); } //------------------------------------------------ } }