/// <summary>Performs post-processing updates.</summary> /// <remarks><para>This method handles the <see cref="LicensingGui.LicenseManagementActionComplete"/> event.</para></remarks> /// <param name="sender">The sender object.</param> /// <param name="e">Event arguments</param> private void PostProcessingUpdates(object sender, LicenseManagementActionCompleteEventArgs e) { SampleLicense.PostProcessingUpdates(ref m_License, ref sampleLicensingGui, ref e, out m_LastLicenseValidationResult); m_LastLicenseValidationTime = DateTime.UtcNow; //Update the license status entries and the controls on this form. UpdateLicenseStatus(); }
/// <summary>Performs post-processing updates.</summary> /// <param name="sender">The sender object.</param> /// <param name="e">Event arguments</param> /// <remarks><para>This method handles the <see cref="LicensingGui.LicenseManagementActionComplete"/> event.</para></remarks> private void PostProcessingUpdates(object sender, LicenseManagementActionCompleteEventArgs e) { SampleLicense.PostProcessingUpdates(ref m_License, ref sampleLicensingGui, ref e, out m_LastLicenseValidationResult); m_LastLicenseValidationTime = DateTime.UtcNow; //Update SeatsTotal when Semaphore is not null if (m_Semaphore != null) { m_Semaphore.SeatsTotal = m_License.LicenseCounter; if (m_Semaphore.SeatsAvailable < 0) { m_Semaphore.Close(); m_Semaphore = null; } } //Update license LastError if license activation has been completed successfully in post-Processing updates if (m_LastLicenseValidationResult && e.LastError.ErrorNumber == LicenseError.ERROR_NONE) { m_License.LastError = new LicenseError(LicenseError.ERROR_NONE); } UpdateLicenseStatus(); }