Example #1
0
        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();
        }
Example #2
0
 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);
 }