Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     管理界面.软件注册 _软件注册 = new 管理界面.软件注册();
     if (_软件注册.ShowDialog() == DialogResult.OK)
     {
         Program.licenseInfo = 辅助库.LicenseValidateHelper.ValidateLicense();
         this.label1.Text = "注册信息:" + "\r" + Program.licenseInfo;
         RegistryKey rk = Registry.CurrentUser.OpenSubKey("Software\\KQRE\\LicenseInfo", true);
         string licenseNumber = rk.GetValue("LicenseNumber") as string;
         this.txtLicenseNumber.Text = licenseNumber;
     }
     else
     {
         //
     }
 }
Beispiel #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     管理界面.软件注册 _软件注册 = new 管理界面.软件注册();
     if (_软件注册.ShowDialog() == DialogResult.OK)
     {
         Program.licenseInfo = 辅助库.LicenseValidateHelper.ValidateLicense();
         this.label1.Text    = "注册信息:" + "\r" + Program.licenseInfo;
         RegistryKey rk            = Registry.CurrentUser.OpenSubKey("Software\\KQRE\\LicenseInfo", true);
         string      licenseNumber = rk.GetValue("LicenseNumber") as string;
         this.txtLicenseNumber.Text = licenseNumber;
     }
     else
     {
         //
     }
 }