SIL.FieldWorks.FieldWorks.FwMainWindowClosing C# (CSharp) Метод

FwMainWindowClosing() приватный статический Метод

Handles the Closing event of FieldWorks Main Windows.
private static FwMainWindowClosing ( object sender, CancelEventArgs e ) : void
sender object The main window that is closing.
e CancelEventArgs The Not used.
Результат void
		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
FieldWorks