Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
        private void DisplayActivationOptions()
        {
            using (var dimmerMask = new DimmerMask(this))
            {
                dimmerMask.Show(this);

                using (var awForm = new ActivationWelcome())
                {
                    awForm.ShowDialog();
                }

                dimmerMask.Close();
            }

            UpdateUIwithLicenseStatus();
        }
Esempio n. 3
0
        private void activateLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            using (var dimmerMask = new DimmerMask(this))
            {
                dimmerMask.Show(this);
                using (var awForm = new ActivationWelcome())
                {
                    awForm.ShowDialog();
                }
            }

            UpdateLicenseUI();
        }