Ejemplo n.º 1
0
 private void BtnActivate_Click(object sender, EventArgs e)
 {
     if (TxtKey.Text.Trim() == string.Empty)
     {
         ShowDialog("Input Licensing Key", Telerik.WinControls.RadMessageIcon.Info);
         return;
     }
     string key = TxtKey.Text.Trim();
     if (!string.IsNullOrEmpty(key))
     {
         EncryptedLicenseProvider provider = new EncryptedLicenseProvider();
         EncryptedLicenseProvider.SetParameters(MyConfiguration.LICENSE_PARAMETERS);
         EncryptedLicense license = provider.InstallLicense(MyConfiguration.licenseFile, key);
         if (license == null)
         {
             ShowDialog("Invalid License Key Entered", Telerik.WinControls.RadMessageIcon.Info);
             return;
         }
         else
         {
             ShowDialog("Activated Successfully", Telerik.WinControls.RadMessageIcon.Info);
             this.Hide();
             Application.DoEvents();
             Installer Frm = new Installer();
             Frm.ShowDialog();
             Application.Exit();
         }
     }
 }
Ejemplo n.º 2
0
 private void BtnContEval_Click(object sender, EventArgs e)
 {
     this.Hide();
     Application.DoEvents();
     Installer Frm = new Installer();
     Frm.ShowDialog();
     Application.Exit();
 }
Ejemplo n.º 3
0
 private void Licensing_Load(object sender, EventArgs e)
 {
     if (!MyConfiguration.SkipLicensing)
     {
         EvaluationDialog evaluationDialog = new EvaluationDialog(MyConfiguration.Application_Title,MyConfiguration.Application_Title);
         LblDuration.Text = "You are on the day " + evaluationDialog.EvaluationMonitor.DaysInUse +" out of 30 day evaluation";
         this.Height = PnlDisplay.Height + 25;
         Application.DoEvents();
     }
     else
     {
         this.Hide();
         Application.DoEvents();
         Installer Frm = new Installer();
         Frm.ShowDialog();
         Application.Exit();
     }
 }