public void StringToLine(string strLine, ref line lineToDraw) { lineToDraw.XFrom = Convert.ToInt32(strLine.Substring(0, 7)); lineToDraw.YFrom = Convert.ToInt32(strLine.Substring(7, 7)); lineToDraw.XTo = Convert.ToInt32(strLine.Substring(14, 7)); lineToDraw.YTo = Convert.ToInt32(strLine.Substring(21, 7)); }
public void StringToLine(string strLine, ref line lineToDraw) { lineToDraw.XFrom = Convert.ToInt32(strLine.Substring(0,7)); lineToDraw.YFrom = Convert.ToInt32(strLine.Substring(7,7)); lineToDraw.XTo = Convert.ToInt32(strLine.Substring(14,7)); lineToDraw.YTo = Convert.ToInt32(strLine.Substring(21,7)); }