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

FindParatextProjects() private method

Loads a list with the Paratext projects on a user's system.
private FindParatextProjects ( ) : bool
return bool
		private bool FindParatextProjects()
		{
			IEnumerable<ScrText> projects = ParatextHelper.ProjectsWithBooks;

			if (!projects.Any())
			{
				if (m_app != null)
				{
					MessageBox.Show(this, ScrImportComponents.kstidImportWizNoParatextProjFound,
						m_app.ApplicationName, MessageBoxButtons.OK,
						MessageBoxIcon.Information);
				}

				rbOther.Checked = true;
				return false;
			}

			m_PTLangProjects.Clear();
			m_PTLangProjects.AddRange(projects);
			m_PTLangProjects.Sort((x, y) => x.ToString().CompareTo(y.ToString()));

			return true;
		}