Example #1
0
        private void btnRegistration_Click(object sender, EventArgs e)
        {
            frmRegistration reg = new frmRegistration(_licensingLibrary);

            reg.ShowDialog(this);

            if (_licensingLibrary.CheckLicense())
            {
                Close();
            }
        }
        private void btnOk_Click(object sender, EventArgs e)
        {
            _licensingLibrary.UserName = txtUserName.Text;
            _licensingLibrary.License  = txtLicenseKey.Text;

            _licensingLibrary.CheckLicense();

            if (_licensingLibrary.LicensedUser == false)
            {
                epValidation.SetError(txtLicenseKey, _licensingLibrary.AdditionalInfo);
            }
            else
            {
                Close();
            }
        }