private void licenceButton_Click(object sender, EventArgs e) { ModifyRegistry myRegistry = new ModifyRegistry(); myRegistry.SubKey = "SOFTWARE\\IssuSiparis"; myRegistry.Write("SERIAL", generatedTextBox.Text); generatedLabel.Text = "Licencing done!"; }
private void unsetButton_Click(object sender, EventArgs e) { ModifyRegistry myRegistry = new ModifyRegistry(); myRegistry.SubKey = "SOFTWARE\\IssuSiparis"; myRegistry.DeleteKey("SERIAL"); generatedLabel.Text = "Licence Deleted!"; }
private void checkLicence() { ModifyRegistry myRegistry = new ModifyRegistry(); myRegistry.SubKey = "SOFTWARE\\IssuSiparis"; string mySerial = myRegistry.Read("SERIAL"); if (mySerial != null) { if (mySerial != LicenceMgr.FingerPrint.Value()) { generatedLabel.Text = "Erreneous licence."; } else { generatedLabel.Text = "Already licenced."; generatedTextBox.Text = mySerial; } } }