public Shape Render(GedcomObject o, int x, int y) { if (o is Individual) { return Render((Individual)o, ScaleX(x), ScaleY(y)); } if (o is Family) { return Render((Family)o, ScaleX(x), ScaleY(y)); } throw new ArgumentException(); }
public void Add(GedcomObject indi) { var visualObject = new VisualObject { Id = indi.Id, GedcomObject = indi, Children = new List<VisualObject>(), Parents = new List<VisualObject>() }; _visualObjects.Add(visualObject); }