public LicenseBox()
 {
     InitializeComponent();
     this.Owner            = Application.Current.MainWindow;
     this.Title            = Settings.AppName + " Licensing";
     this.ComputerKey.Text = Lima.GetComputerKey();
     this.CurrentKeys.Text = Lima.GetLicensesDetails();
 }
        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 + ".");
            }
        }