/// <summary> /// Parses a DataItem from four string arrays. /// </summary> /// <param name="sx">The string array to parse the x values from.</param> /// <param name="sy">The string array to parse the y values from.</param> /// <param name="sdx">The string array to parse the dx values from.</param> /// <param name="sdy">The string array to parse the dy values from.</param> public void Parse(string[] sx, string[] sy, string[] sdx, string[] sdy) { int lx, ly, ldx, ldy; lx = sx.Length; while ((lx > 0) && (sx[lx - 1] == "")) { lx--; } ly = sy.Length; while ((ly > 0) && (sy[ly - 1] == "")) { ly--; } ldx = sdx.Length; while ((ldx > 0) && (sdx[ldx - 1] == "")) { ldx--; } ldy = sdy.Length; while ((ldy > 0) && (sdy[ldy - 1] == "")) { ldy--; } Length = Math.Max(Math.Max(Math.Max(lx, ly), ldx), ldy); x.Parse(sx, false); y.Parse(sy, false); dx.Parse(sdx, false); dy.Parse(sdy, false); }