private static void FwMainWindowClosing(object sender, CancelEventArgs e)
{
if (s_activeMainWnd == sender)
{
// Remember the settings, so that, if we end up saving some changes
// related to it, we can record the last saved project.
s_settingsForLastClosedWindow = s_activeMainWnd.App.RegistrySettings;
// Make sure the closing main window is not considered the active main window
s_activeMainWnd = null;
}
}
#endregion