public void EditNiceNames(Parameters coll) { DataTable dt = ProLogForNiceNames(coll); DataRowCollection rows = dt.Rows; foreach(Parameter o in coll) { rows.Add(new object[] { o.Name, o.Alias, o } ); } EpilogForNiceNames(dt); }
public void EditNiceNames(Parameters coll) { if (this._currentHashCode == coll.GetHashCode()) return; DataTable dt = ProLogForNiceNames(coll); DataRowCollection rows = dt.Rows; foreach(Parameter o in coll) { rows.Add(new object[] { o.Name, o.Alias, o } ); } EpilogForNiceNames(dt); this._currentHashCode = coll.GetHashCode(); }