OdessaGUIProject.SettingsForm.saveAsProRes_CheckedChanged C# (CSharp) Method

saveAsProRes_CheckedChanged() private method

private saveAsProRes_CheckedChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        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;
            }
        }