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 ChildViewModel(Client client) { _child = client; _child.PropertyChanged += Child_PropertyChanged; Caption = client.FirstName; Image = new DefaultImageGetter().BabyIcon; ChildVisualCard = new ChildVisualCardViewModel(_child); ChildActionPanels = new List<IChildInfoPanel> { new EditChildViewModel(_child) }; }
public EditChildViewModel(Client child) { this.child = child; this.child.PropertyChanged += Child_PropertyChanged; gezinnen = new BindableCollection<GezinViewModel>(new[] { new GezinViewModel(child) }); }
public ChildVisualCardViewModel(Client child) { _child = child; _child.PropertyChanged += Child_PropertyChanged; }
public ChildOverviewViewModel(Client child) { this.child = child; }
public GezinViewModel(Client child) { this.child = child; }