예제 #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;
 }
예제 #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)
            };
        }
예제 #3
0
 public EditChildViewModel(Client child)
 {
     this.child = child;
     this.child.PropertyChanged += Child_PropertyChanged;
     gezinnen = new BindableCollection<GezinViewModel>(new[] { new GezinViewModel(child) });
 }
예제 #4
0
 public ChildVisualCardViewModel(Client child)
 {
     _child = child;
     _child.PropertyChanged += Child_PropertyChanged;
 }
예제 #5
0
 public ChildOverviewViewModel(Client child)
 {
     this.child = child;
 }
예제 #6
0
 public GezinViewModel(Client child)
 {
     this.child = child;
 }