public void AddDuhringLine() { DuhringLine line = new DuhringLine(this); duhringLines.Add(line); OnDuhringLinesChanged(); }
public void RemoveDuhringLine(DuhringLine line) { if (duhringLines.Count > 2) { duhringLines.Remove(line); OnDuhringLinesChanged(); } }
public DuhringLinesCache(DryingMaterialCache owner) { this.owner = owner; if (owner.DuhringLines != null) { foreach (CurveF c in owner.DuhringLines) { DuhringLine line = new DuhringLine(this, c.Value, c.Data[0], c.Data[1]); duhringLines.Add(line); } } else { DuhringLine line = new DuhringLine(this); duhringLines.Add(line); line = new DuhringLine(this); duhringLines.Add(line); } }