public LicenseBox() { InitializeComponent(); this.Owner = Application.Current.MainWindow; this.Title = Settings.AppName + " Licensing"; this.ComputerKey.Text = Lima.GetComputerKey(); this.CurrentKeys.Text = Lima.GetLicensesDetails(); }
internal bool IsAuthenticated() { try { return(Lima.CheckModuleAuthenticated(GetModuleId(), GetAuthCode()) == 0); } catch (Exception) { } return(false); }
void addLicenseButton_Click(object sender, EventArgs e) { int numAdded = 0; int numInvalid = 0; string s = this.AddKeys.Text; string r = Lima.UpdateLicenses(s, out numAdded, out numInvalid); if (numAdded > 0) { this.CurrentKeys.Text = Lima.GetLicensesDetails(); Modules.UpdateInstalledModules(); } if (numInvalid > 0) { Settings.BugReport("Unable to add " + numInvalid + " license(s): " + r + "."); } }
public static void StartApp() { Lima.LoadLicenses(); LoadModules(); if (ModuleAddIns.Count < 2) { Settings.BugReport("Modules.StartApp: warning: only Core module loaded."); } UpdateInstalledModules(); foreach (Module m in ModuleAddIns) { try { if (m.AuthStartApp()) { break; } } catch (Exception) { } } }
public static string LimaTest() { return(Lima.GetDrive("C")); }
void removeLicenseButton_Click(object sender, EventArgs e) { Lima.RemoveLicenses(); this.CurrentKeys.Text = "None"; Settings.BugReport("Restart application for changes to take effect."); }