Exemplo n.º 1
0
        public void AddDuhringLine()
        {
            DuhringLine line = new DuhringLine(this);

            duhringLines.Add(line);
            OnDuhringLinesChanged();
        }
Exemplo n.º 2
0
 public void RemoveDuhringLine(DuhringLine line)
 {
     if (duhringLines.Count > 2)
     {
         duhringLines.Remove(line);
         OnDuhringLinesChanged();
     }
 }
Exemplo n.º 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);
     }
 }