SIL.FieldWorks.FieldWorks.GetPreviousStartupStatus C# (CSharp) Méthode

GetPreviousStartupStatus() private static méthode

Gets the status of the previous attempt to startup the specified application.
private static GetPreviousStartupStatus ( FwApp app ) : StartupStatus
app SIL.FieldWorks.Common.Framework.FwApp The application.
Résultat StartupStatus
		private static StartupStatus GetPreviousStartupStatus(FwApp app)
		{
			int loadingId = app.RegistrySettings.LoadingProcessId;
			if (loadingId > 0)
			{
				// The last attempt to load the application never finished. We need to decide
				// if it didn't finish because of a crash or if its still in the process of
				// loading.
				return ExistingProcesses.Any(process => process.Id == loadingId) ?
					StartupStatus.StillLoading : StartupStatus.Failed;
			}
			return StartupStatus.Successful;
		}
FieldWorks