public static Family AddNewFor(Client child) { var fam = new Family() { Name = "Een gezin", Address = new Address { Street="Urselweg", NumberBus="21A", PostalCode="9990", City="Maldegem", Country="België" }, IsExpanded = true }; RelationFactory.AddNewFor(fam); child.Families.Add(fam); return fam; }
public static Relation AddNewFor(Family fam) { var relation = new Relation { Family = fam, IsExpanded = true }; fam.Relations.Add(relation); return relation; }
public void RemoveFamily(Family family) { child.Families.Remove(family); NotifyOfPropertyChange(() => HasFamily); }
public void AddRelation(Family fam) { RelationFactory.AddNewFor(fam); }