private void saveAsProRes_CheckedChanged(object sender, EventArgs e)
{
if (saveAsProRes.Checked)
{
var activationState = Protection.GetLicenseStatus();
if (activationState == Protection.ActivationState.TrialExpired || activationState == Protection.ActivationState.Unlicensed)
{
if (MessageBox.Show("Sorry, but that feature is only available in Highlight Hunter Pro." + Environment.NewLine + Environment.NewLine +
"Would you like to learn more about the Pro version?", "Pro version required", MessageBoxButtons.YesNo, MessageBoxIcon.Hand)
== DialogResult.Yes)
{
using (var awForm = new ActivationWelcome())
{
awForm.ShowDialog();
}
UpdateLicenseUI();
}
}
// see if status changed
activationState = Protection.GetLicenseStatus();
if (activationState == Protection.ActivationState.TrialExpired || activationState == Protection.ActivationState.Unlicensed)
saveAsProRes.Checked = false;
}
}