internal override void Load(XmlNode node) { base.Load(node); this.m_comment = Utils.GetXmlNodeAttribute(node, "Comment"); this.m_singleRecord = Utils.GetXmlNodeAttribute(node, "SingleRecord").Equals("Y"); this.m_outputLines = Utils.Str2Int(Utils.GetXmlNodeAttribute(node, "OutputLines"), 0); this.m_forceNewPage = Utils.Str2Int(Utils.GetXmlNodeAttribute(node, "ForceNewPage"), 0); this.m_fillWithBlank = Utils.GetXmlNodeAttribute(node, "FillWithBlank").Equals("Y"); this.m_pageRows = Utils.Str2Int(Utils.GetXmlNodeAttribute(node, "PageRows"), 0); this.m_pageColumns = Utils.Str2Int(Utils.GetXmlNodeAttribute(node, "PageColumns"), 1); this.m_sql = Utils.GetXmlNodeAttribute(node, "SQL"); this.m_fieldCount = Utils.Str2Int(Utils.GetXmlNodeAttribute(node, "FieldCount"), 0); for (int i = 1; i <= this.m_fieldCount; i++) { this.AddField(Utils.GetXmlNodeAttribute(node, "Field" + i.ToString())); } bool hasChildNodes = node.HasChildNodes; if (hasChildNodes) { for (XmlNode nodeChild = node.FirstChild; nodeChild != null; nodeChild = nodeChild.NextSibling) { bool flag = nodeChild.Name == "DataSet"; if (flag) { RdDataSet gtrDataSet = new RdDataSet(base.Document); gtrDataSet.MasterDataSet = this; gtrDataSet.Load(nodeChild); base.Document.DataSets.List.Add(gtrDataSet.Name, gtrDataSet); } } } }
internal void Load(XmlNode node) { bool hasChildNodes = node.HasChildNodes; if (hasChildNodes) { for (XmlNode dataSetNode = node.FirstChild; dataSetNode != null; dataSetNode = dataSetNode.NextSibling) { bool flag = dataSetNode.Name == "DataSet"; if (flag) { RdDataSet gtrDataSet = new RdDataSet(base.Document); gtrDataSet.Load(dataSetNode); this.m_list.Add(gtrDataSet.Name, gtrDataSet); base.Document.Changed(); } } } }