예제 #1
0
        public void AddDuhringLine()
        {
            DuhringLine line = new DuhringLine(this);

            duhringLines.Add(line);
            OnDuhringLinesChanged();
        }
예제 #2
0
 public void RemoveDuhringLine(DuhringLine line)
 {
     if (duhringLines.Count > 2)
     {
         duhringLines.Remove(line);
         OnDuhringLinesChanged();
     }
 }
예제 #3
0
 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);
     }
 }