private static bool LaunchApplicationFromCommandLine(FwAppArgs appArgs)
{
// Get the application requested on the command line
if (!CreateApp(appArgs))
return false;
// Get the project the user wants to open and attempt to launch it.
ProjectId projectId = DetermineProject(appArgs);
if (projectId != null && IsSharedXmlBackendNeeded(projectId))
projectId.Type = FDOBackendProviderType.kSharedXML;
// s_projectId can be non-null if the user decided to restore a project from
// the Welcome to Fieldworks dialog. (FWR-2146)
if (s_projectId == null && !LaunchProject(appArgs, ref projectId))
return false;
// The project was successfully loaded so store it. This will let any other
// FieldWorks processes that are waiting on us be able to continue.
s_projectId = projectId;
WarnUserAboutFailedLiftImportIfNecessary(GetOrCreateApplication(appArgs));
if (s_noUserInterface)
{
// We should have a main window by now, so the help button on the dialog
// will work if needed.
CheckForMovingExternalLinkDirectory(GetOrCreateApplication(appArgs));
}
return true;
}