NServiceBus.LicenseExpiredForm.OnLoad C# (CSharp) Method

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            var version = GitFlowVersion.MajorMinorPatch;

            if (CurrentLicense != null && !CurrentLicense.IsExtendedTrial)
            {
                Text = $"NServiceBus License (v{version})";
                warningText.Text = "It's time to extend your trial.";
                instructionsText.Text = @"Your 14-day trial is up, but you can instantly extend your trial for FREE. NServiceBus will remain fully functional although continued use is in violation of our EULA.

When you receive your new license file, save it to disk and click the 'Browse' button to select it.";
                getTrialLicenseButton.Text = "Extend Trial";
                purchaseButton.Visible = false;
                getTrialLicenseButton.Left = purchaseButton.Left;
            }
            else
            {
                Text = $"NServiceBus License (v{version})";
                warningText.Text = "It's time to buy a license.";
                instructionsText.Text = @"Your extended trial is up, but we don't want to stop you in your tracks. If you need to extend your trial further, please contact us and we'll work something out. NServiceBus will remain fully functional although continued use is in violation of our EULA.

When you receive your new license file, save it to disk and click the 'Browse' button to select it.";
                getTrialLicenseButton.Text = "Contact Us";
            }

            Visible = true;
        }