Esempio n. 1
0
        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!";
        }
Esempio n. 2
0
        private void unsetButton_Click(object sender, EventArgs e)
        {
            ModifyRegistry myRegistry = new ModifyRegistry();

            myRegistry.SubKey = "SOFTWARE\\IssuSiparis";
            myRegistry.DeleteKey("SERIAL");
            generatedLabel.Text = "Licence Deleted!";
        }
Esempio n. 3
0
        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;
                }
            }
        }