/// <summary>Close form button click event handler</summary> /// <param name="sender">object</param> /// <param name="e">EventArgs</param> private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { if (m_isLicenseValid) { //we're shutting down, so just try to save what we can int ignore1, ignore2; m_License.WriteAliases(out ignore1, out ignore2); m_License.WriteLicenseFile(LicenseConfiguration.LicenseFilePath); } }