Esempio n. 1
0
 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;
 }
Esempio n. 2
0
        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)
            };
        }
Esempio n. 3
0
 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;
 }
Esempio n. 5
0
 public ChildOverviewViewModel(Client child)
 {
     this.child = child;
 }
Esempio n. 6
0
 public GezinViewModel(Client child)
 {
     this.child = child;
 }