ESBeamTool.Misc_Forms.SoftLocked
// Token: 0x0600316C RID: 12652 RVA: 0x00198AF0 File Offset: 0x00196CF0
private void cmdActivate_Click(object sender, EventArgs e)
{
SoftLicense licenseManager = Controller.GetLicenseManager();
SoftLicense.ActivationLevels activationLevels = licenseManager.Active(false);
if (activationLevels == SoftLicense.ActivationLevels.None)
{
try
{
Registry.SetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Eclipse Scientific\\ESBeamTool\\Setup", "SerialNumber", licenseManager.SerialNumber);
}
catch
{
}
return;
}
Controller.TrialMode = activationLevels == SoftLicense.ActivationLevels.Trial;
if (Controller.TrialMode)
{
frmTrial frmTrial = new frmTrial();
int num = 0;
DateTime dateTime;
if (licenseManager.FullTrialPeriodActive(out dateTime, out num))
{
frmTrial.Title.Text = "BeamTool is currently running in Extended Trial Mode.";
frmTrial.Description.Text = "BeamTool will run un-restricted for 10 days if a network connection is available. After 10 days BeamTool will switch to limited mode.";
frmTrial.TrialState.Text = string.Format("Extended trial mode valid until {0:MMMM d, yyyy}. {1} days remaining.", dateTime, num);
Controller.TrialMode = false;
}
else
{
frmTrial.TrialState.Text = string.Format("Extended trial mode expired on {0:MMMM d, yyyy}. ", dateTime);
}
frmTrial.ShowDialog(this);
}
if (base.Parent is BeamToolView)
{
(base.Parent as BeamToolView).ActivateLicense();
}
}

发表回复
要发表评论,您必须先登录。