Example #1
0
 /// <summary>
 /// Creates a clone of this instance
 /// </summary>
 /// <returns>A clone of this instance</returns>
 public object Clone()
 {
     return(new BedOrChamber
     {
         Active = (float[])Active.Clone(),
         Standby = (float[])Standby.Clone(),
         Name = (Name != null) ? string.Copy(Name) : null,
         Heaters = (int[])Heaters.Clone()
     });
 }
Example #2
0
 /// <summary>
 /// Creates a clone of this instance
 /// </summary>
 /// <returns>A clone of this instance</returns>
 public object Clone()
 {
     return(new Tool
     {
         Number = Number,
         Active = (float[])Active.Clone(),
         Standby = (float[])Standby.Clone(),
         Name = (Name != null) ? string.Copy(Name) : null,
         Filament = (Filament != null) ? string.Copy(Filament) : null,
         Fans = (int[])Fans.Clone(),
         Heaters = (int[])Heaters.Clone(),
         Mix = (float[])Mix.Clone(),
         Spindle = Spindle,
         Axes = Axes.Select(subAxes => (int[])subAxes.Clone()).ToList(),
         Offsets = (float[])Offsets.Clone()
     });
 }