internal override bool GetXmlNode(out XmlNode node, bool forceCreate) { node = null; bool success = false; if (null == _xmlNode) { // Get the parent node XmlNode parentNode; if (ResultColumns.GetXmlNode(out parentNode, forceCreate)) { // See if our user data already exists string xPath = @"./ResultColumn[@p='" + Name + "']"; if (!GetUserData(xPath, parentNode, out _xmlNode) && forceCreate) { // Create it, and try again CreateUserMetaData(parentNode); GetUserData(xPath, parentNode, out _xmlNode); } } } if (null != _xmlNode) { node = _xmlNode; success = true; } return(success); }
public void EditNiceNames(ResultColumns coll) { DataTable dt = ProLogForNiceNames(coll); DataRowCollection rows = dt.Rows; foreach(ResultColumn o in coll) { rows.Add(new object[] { o.Name, o.Alias, o } ); } EpilogForNiceNames(dt); }
public void EditNiceNames(ResultColumns coll) { if (this._currentHashCode == coll.GetHashCode()) return; DataTable dt = ProLogForNiceNames(coll); DataRowCollection rows = dt.Rows; foreach(ResultColumn o in coll) { rows.Add(new object[] { o.Name, o.Alias, o } ); } EpilogForNiceNames(dt); this._currentHashCode = coll.GetHashCode(); }