ArcGISCompare.zHelpClass.DisplayPage C# (CSharp) Method

DisplayPage() public method

public DisplayPage ( int pageNumber, System.Windows.Forms.RichTextBox theHelpBox ) : System.Boolean
pageNumber int
theHelpBox System.Windows.Forms.RichTextBox
return System.Boolean
        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;
        }