private void InitValues(XmlNode node)
        {
            tbBookmark.Text = _Draw.GetElementValue(node, "Bookmark", "");
            // Handle Action definition
            XmlNode aNode = _Draw.GetNamedChildNode(node, "Action");

            if (aNode == null)
            {
                rbNoAction.Checked = true;
            }
            else
            {
                XmlNode vLink = _Draw.GetNamedChildNode(aNode, "Hyperlink");
                if (vLink != null)
                {                       // Hyperlink specified
                    rbHyperlink.Checked = true;
                    tbHyperlink.Text    = vLink.InnerText;
                }
                else
                {
                    vLink = _Draw.GetNamedChildNode(aNode, "Drillthrough");
                    if (vLink != null)
                    {                           // Drillthrough specified
                        rbDrillthrough.Checked = true;
                        tbDrillthrough.Text    = _Draw.GetElementValue(vLink, "ReportName", "");
                        _DrillParameters       = new List <DrillParameter>();
                        XmlNode pNodes = _Draw.GetNamedChildNode(vLink, "Parameters");
                        if (pNodes != null)
                        {
                            foreach (XmlNode pNode in pNodes.ChildNodes)
                            {
                                if (pNode.Name != "Parameter")
                                {
                                    continue;
                                }
                                string         name   = _Draw.GetElementAttribute(pNode, "Name", "");
                                string         pvalue = _Draw.GetElementValue(pNode, "Value", "");
                                string         omit   = _Draw.GetElementValue(pNode, "Omit", "false");
                                DrillParameter dp     = new DrillParameter(name, pvalue, omit);
                                _DrillParameters.Add(dp);
                            }
                        }
                    }
                    else
                    {
                        vLink = _Draw.GetNamedChildNode(aNode, "BookmarkLink");
                        if (vLink != null)
                        {                               // BookmarkLink specified
                            rbBookmarkLink.Checked   = true;
                            this.tbBookmarkLink.Text = vLink.InnerText;
                        }
                    }
                }
            }

            // Handle Visiblity definition
            XmlNode visNode = _Draw.GetNamedChildNode(node, "Visibility");

            if (visNode != null)
            {
                XmlNode hNode = _Draw.GetNamedChildNode(node, "Visibility");
                this.tbHidden.Text = _Draw.GetElementValue(visNode, "Hidden", "");
                this.cbToggle.Text = _Draw.GetElementValue(visNode, "ToggleItem", "");
            }
            IEnumerable list = _Draw.GetReportItems("//Textbox");

            if (list != null)
            {
                foreach (XmlNode tNode in list)
                {
                    XmlAttribute name = tNode.Attributes["Name"];
                    if (name != null && name.Value != null && name.Value.Length > 0)
                    {
                        cbToggle.Items.Add(name.Value);
                    }
                }
            }
            // nothing has changed now
            fBookmark = fAction = fHidden = fToggle = false;
        }
        private void InitValues(XmlNode node)
        {
            tbBookmark.Text = _Draw.GetElementValue(node, "Bookmark", "");
            // Handle Action definition
            XmlNode aNode = _Draw.GetNamedChildNode(node, "Action");
            if (aNode == null)
                rbNoAction.Checked = true;
            else
            {
                XmlNode vLink = _Draw.GetNamedChildNode(aNode, "Hyperlink");
                if (vLink != null)
                {	// Hyperlink specified
                    rbHyperlink.Checked = true;
                    tbHyperlink.Text = vLink.InnerText;
                }
                else
                {
                    vLink = _Draw.GetNamedChildNode(aNode, "Drillthrough");
                    if (vLink != null)
                    {	// Drillthrough specified
                        rbDrillthrough.Checked = true;
                        tbDrillthrough.Text =  _Draw.GetElementValue(vLink, "ReportName", "");
                        _DrillParameters = new List<DrillParameter>();
                        XmlNode pNodes = _Draw.GetNamedChildNode(vLink, "Parameters");
                        if (pNodes != null)
                        {
                            foreach (XmlNode pNode in pNodes.ChildNodes)
                            {
                                if (pNode.Name != "Parameter")
                                    continue;
                                string name = _Draw.GetElementAttribute(pNode, "Name", "");
                                string pvalue = _Draw.GetElementValue(pNode, "Value", "");
                                string omit = _Draw.GetElementValue(pNode, "Omit", "false");
                                DrillParameter dp = new DrillParameter(name, pvalue, omit);
                                _DrillParameters.Add(dp);
                            }
                        }
                    }
                    else
                    {
                        vLink = _Draw.GetNamedChildNode(aNode, "BookmarkLink");
                        if (vLink != null)
                        {	// BookmarkLink specified
                            rbBookmarkLink.Checked = true;
                            this.tbBookmarkLink.Text = vLink.InnerText;
                        }
                    }
                }
            }

            // Handle Visiblity definition
            XmlNode visNode = _Draw.GetNamedChildNode(node, "Visibility");
            if (visNode != null)
            {
                XmlNode hNode = _Draw.GetNamedChildNode(node, "Visibility");
                this.tbHidden.Text = _Draw.GetElementValue(visNode, "Hidden", "");
                this.cbToggle.Text = _Draw.GetElementValue(visNode, "ToggleItem", "");
            }
            IEnumerable list = _Draw.GetReportItems("//Textbox");
            if (list != null)
            {
                foreach (XmlNode tNode in list)
                {
                    XmlAttribute name = tNode.Attributes["Name"];
                    if (name != null && name.Value != null && name.Value.Length > 0)
                        cbToggle.Items.Add(name.Value);
                }
            }
            // nothing has changed now
            fBookmark = fAction = fHidden = fToggle = false;
        }