/// <summary>Refresh License button click event handler</summary> /// <param name="sender">object</param> /// <param name="e">EventArgs</param> private void refreshLicenseButton_Click(object sender, EventArgs e) { if (m_License.RefreshLicense()) { MessageBox.Show("The license has been refreshed successfully.", "License Refresh", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("The license was not refreshed. Error: (" + m_License.LastError.ErrorNumber + ")" + m_License.LastError.ErrorString, "License Refresh", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } ReloadLicense(); }