SIL.FieldWorks.TE.ImportWizard.SetParatextProjectIds C# (CSharp) Method

SetParatextProjectIds() private method

Store in the settings the Paratext projects selected in the combo boxes from the project location step, provided they are valid projects.
private SetParatextProjectIds ( ) : bool
return bool
		private bool SetParatextProjectIds()
		{
			// The projects will only be assigned if the project can be loaded (part of the set
			// property).
			m_settings.ParatextScrProj = GetPTShortName(cboPTLangProj);
			m_settings.ParatextBTProj = GetPTShortName(cboPTBackTrans);
			m_settings.ParatextNotesProj = GetPTShortName(cboPTTransNotes);
			ParatextHelper.LoadProjectMappings(m_settings);

			CheckProjectCombo(m_settings.ParatextScrProj, cboPTLangProj, ImportDomain.Main);
			CheckProjectCombo(m_settings.ParatextBTProj, cboPTBackTrans, ImportDomain.BackTrans);
			CheckProjectCombo(m_settings.ParatextNotesProj, cboPTTransNotes,
				ImportDomain.Annotations);

			return m_settings.ParatextScrProj != null || m_settings.ParatextBTProj != null ||
				m_settings.ParatextNotesProj != null;
		}