Esempio n. 1
0
 /// <summary>
 /// String representation of gcode line
 /// </summary>
 /// <returns></returns>
 public string ToString()
 {
     if (comment.Length > 0)
     {
         return("Comments:" + comment);
     }
     else
     {
         return("From:" + FromPosition.ToString() + " To:" + ToPosition.ToString() +
                "; Directory:" + this.xDir.ToString() + "," + this.yDir.ToString() + "," + this.zDir.ToString());
     }
 }
Esempio n. 2
0
 public override string ToString()
 {
     return(string.Format("{0}->{1},{2}", FromPosition.ToString(), ToPosition.ToString(), (DoTransform ? "@" : "-")));
 }