Exemplo n.º 1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     if (Enigma_IDE.EP_RegLoadAndCheckKey())
     {
         int Total = 0;
         int Left  = 0;
         if (Enigma_IDE.EP_RegKeyRuntime(ref Total, ref Left))
         {
             ShowOurMessage(string.Format("Valid license, total runtime minute(s) {0}, left {1}", Total, Left));
         }
         else
         {
             ShowOurMessage("License is valid, but not runtime limited!");
         }
     }
     else
     {
         ShowOurMessage("License is invalid!");
     }
 }
Exemplo n.º 2
0
        private void ProcessRegistration()
        {
            Int32 ExpYear  = 0;
            Int32 ExpMonth = 0;
            Int32 ExpDay   = 0;

            if (Enigma_IDE.EP_RegLoadAndCheckKey())
            {
                if (Enigma_IDE.EP_RegKeyExpirationDate(ref ExpYear, ref ExpMonth, ref ExpDay))
                {
                    tbStatus.Text = string.Format("REGISTERED. Expiration date: {0}/{1}/{2}", ExpDay, ExpMonth, ExpYear);
                }
                else
                {
                    tbStatus.Text = "REGISTERED. Key has not expiration!";
                }
            }
            else
            {
                tbStatus.Text = "APPLICATION IS UNREGISTERED";
            }
        }
Exemplo n.º 3
0
 private void frmMain_Load(object sender, System.EventArgs e)
 {
     tbHardware.Text = Enigma_IDE.EP_RegistrationHardwareID();
     OnRegistration(Enigma_IDE.EP_RegLoadAndCheckKey());
 }