using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Tool; namespace RfidWeb { public partial class Form1 : Form { public Form1() { if (!HslCommunication.Authorization.SetAuthorizationCode(RfidSetting.Current.HslKey)) { Console.WriteLine("Authorization failed! The current program can only be used for 8 hours!"); return; // 激活失败应该退出系统 } InitializeComponent(); } } }