private void loadDataSheetPage()
        {
            XmlNodeList plantList = plantsXml.DocumentElement.SelectNodes("Plant");

            foreach (XmlNode node in plantList)
            {
                bool nodeFound = true;

                for (int i = 0; i < wizardPages.Length; i++)
                {
                    if (node[wizardPages[i]].InnerText != selectedValues[i])
                    {
                        nodeFound = false;
                    }
                }

                if (nodeFound)
                {
                    signatureGenerator.updateSignatureValue("%entityname%", node["Entity"].InnerText);
                    signatureGenerator.updateSignatureValue("%companyaddress%", node["Address"].InnerText);

                    if (node["Language"] != null)
                    {
                        updateInterfaceLanguage(node["Language"].InnerText);
                    }
                    else
                    {
                        updateInterfaceLanguage("en");
                    }

                    if (node["NativeLegalText"] != null)
                    {
                        nativeLegalText = node["NativeLegalText"].InnerText;
                    }
                    else
                    {
                        nativeLegalText = "";
                    }

                    if (node["EnglishLegalText"] != null)
                    {
                        englishLegalText = node["EnglishLegalText"].InnerText;
                    }

                    labelPhoneCountryCode.Text  = "+" + node["PhoneCountryCode"].InnerText;
                    labelPhoneCountryCode2.Text = "+" + node["PhoneCountryCode"].InnerText;
                }
            }

            WizardPages.SelectTab("pageDataSheet");
            updateHtmlPreviewPage(null, null);
        }
        private void loadPage(string locationValue)
        {
            selectedValues[currentPageIndex] = locationValue;
            currentPageIndex++;

            if (currentPageIndex == wizardPages.Length)
            {
                loadDataSheetPage();
                return;
            }

            if (addButtonList(locationValue, currentPageIndex))
            {
                WizardPages.SelectTab(currentPageIndex);
            }
            else
            {
                // If there is only one choice than skip it to the next page
                loadPage(selectedValues[currentPageIndex]);
            }
        }