static void Main() { SoftReg SR = new SoftReg(); string key = ConfigHelper.GetConfigString("lience"); if (key == SR.getRNum()) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } else { MessageBox.Show("Lience有误!请激活!"); } }
public LienceKey() { InitializeComponent(); SR = new SoftReg(); }