private void ExecutePathMoveToAbs(XmlElement element, Collection<IPath> paths)
{
Hashtable arguments = new Hashtable();
foreach (XmlAttribute attribute in element.Attributes)
{
if (attribute.Name == "coordinate")
arguments["coordinate"] = Variables.GetValue<PointD>(attribute);
else if (attribute.Name == "x")
arguments["x"] = Variables.GetValue<double>(attribute);
else if (attribute.Name == "y")
arguments["y"] = Variables.GetValue<double>(attribute);
}
if (OnlyContains(arguments, "coordinate"))
paths.Add(new PathMoveToAbs((PointD)arguments["coordinate"]));
else if (OnlyContains(arguments, "x", "y"))
paths.Add(new PathMoveToAbs((double)arguments["x"], (double)arguments["y"]));
else
throw new ArgumentException("Invalid argument combination for 'moveToAbs', allowed combinations are: [coordinate] [x, y]");
}
private void ExecutePathMoveToRel(XmlElement element, Collection<IPath> paths)