static private GetProjectMatchStatus ( SIL.FieldWorks.ProjectId projectId ) : ProjectMatch | ||
projectId | SIL.FieldWorks.ProjectId | The project to test. |
Résultat | ProjectMatch |
internal static ProjectMatch GetProjectMatchStatus(ProjectId projectId)
{
if (s_fSingleProcessMode)
return ProjectMatch.SingleProcessMode;
if (s_fWaitingForUserOrOtherFw)
return ProjectMatch.WaitingForUserOrOtherFw;
ProjectId thisProjectId = s_projectId; // Store in temp variable for thread safety
if (thisProjectId == null)
return ProjectMatch.DontKnowYet;
return thisProjectId.Equals(projectId) ? ProjectMatch.ItsMyProject :
ProjectMatch.ItsNotMyProject;
}