Example #1
0
        public void SetPerson(TreeChartPerson person)
        {
            if (person == null)
            {
                return;
            }
            fPerson = person;

            ExtPoint offsets = fChart.GetOffsets();
            ExtRect  rt      = fPerson.Rect.GetOffset(offsets.X, offsets.Y);

            rt        = ExtRect.CreateBounds(rt.Right, rt.Top, 40, rt.Height);
            fDestRect = rt;
        }
Example #2
0
        public void AddSpouse(TreeChartPerson spouse)
        {
            if (spouse == null)
            {
                return;
            }

            if (fSpouses == null)
            {
                fSpouses = new PersonList(false);
            }

            fSpouses.Add(spouse);
        }
Example #3
0
        public void AddChild(TreeChartPerson child)
        {
            if (child == null)
            {
                return;
            }

            if (fChilds == null)
            {
                fChilds = new PersonList(false);
            }

            fChilds.Add(child);
        }
Example #4
0
 public PersonModifyEventArgs(TreeChartPerson person)
 {
     Person = person;
 }
Example #5
0
        public TreeChartPerson GetSpouse(int index)
        {
            TreeChartPerson result = ((fSpouses == null) ? null : fSpouses[index]);

            return(result);
        }
Example #6
0
        public TreeChartPerson GetChild(int index)
        {
            TreeChartPerson result = ((fChilds == null) ? null : fChilds[index]);

            return(result);
        }