public Boolean DisplayPage(int pageNumber, RichTextBox theHelpBox)
{
XmlElement theElement, thePage;
currentPage = pageNumber;
theElement = zHelpFile.DocumentElement;
totalPages = theElement.ChildNodes.Count;
for (int i = 0; i < totalPages; i++)
{
thePage = (XmlElement)theElement.ChildNodes[i];
if (thePage.ChildNodes[0].InnerText.ToString() == currentPage.ToString())
{
aPage = thePage;
currentName = thePage.ChildNodes[1].InnerText;
currentHelp = thePage.ChildNodes[2].InnerText;
theHelpBox.Rtf = currentHelp;
return true;
}
}
return false;
}