private void CommonCreateJoint(IList <string> lines, IDictionary <string, IJoint> joints, string[] parts, IJoint joint) { string locationLine = PopLine(lines); string[] locationValues = locationLine.Split(','); joint.Location = new PointF(Convert.ToSingle(locationValues[0]), Convert.ToSingle(locationValues[1])); joint.Rotation = Convert.ToSingle(PopLine(lines)); joint.ZIndex = Convert.ToSingle(PopLine(lines)); if (parts.Length > 1) { string parentName = GetParentName(parts[1]); IJoint parentJoint = joints[parentName]; parentJoint.AddJoint(joint); joints.Add(parts[1], joint); } else { joints.Add(".", joint); } }