public object Clone() { var cloneObj = new CriterionRangeList(); cloneObj.AndRange = AndRange.Clone() as XmlList <CriterionRange>; return(cloneObj); }
private CriterionRangeList CloneRange(CriterionRangeList srcList) { var c = new CriterionRangeList(); var srcRange = srcList.AndRange; var r = new XmlList <CriterionRange>(); foreach (var v in srcRange) { r.Add(v.Clone() as CriterionRange); } c.AndRange = r; return(c); }
/// <summary> 切换为要修改的单元格 </summary> private void DgvSlopeOnCriterionsToBeModified(CriterionRangeList slopeRangeList, DataGridViewCell cell) { listBox_Criterions.DataSource = new BindingList <CriterionRange>(slopeRangeList.AndRange); _activeCell = cell; }
public SpCriterion() { FirstSlopeRatio = new CriterionRangeList(); SlopeHeight = new CriterionRangeList(); SlopeLevel = new CriterionRangeList(); }