Exemple #1
0
        private void tSB_add_Click(object sender, EventArgs e)
        {
            EditLicenseKey newKey = new EditLicenseKey();

            if (newKey.ShowDialog() == DialogResult.OK)
            {
                BlueFlame.Classes.DatabaseObjects.License license =
                    new BlueFlame.Classes.DatabaseObjects.License(
                        newKey.LicenseKey,
                        newKey.IsMulti,
                        newKey.IsDistributed,
                        "",
                        null,
                        _product);
                license.Create();
                _licenseProvider = null;
            }
            GetLicenseKeys(_product);
        }
Exemple #2
0
        private void tSB_import_Click(object sender, EventArgs e)
        {
            ImportLicense import = new ImportLicense();

            if (import.ShowDialog() == DialogResult.OK)
            {
                bool multi = import.IsMulti;

                foreach (string str in import.Keys)
                {
                    BlueFlame.Classes.DatabaseObjects.License license =
                        new BlueFlame.Classes.DatabaseObjects.License(
                            str,
                            multi,
                            false,
                            "",
                            null,
                            _product);
                    license.Create();
                    _licenseProvider = null;
                }
                GetLicenseKeys(_product);
            }
        }