Exemplo n.º 1
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)
            };
        }
Exemplo n.º 2
0
        public ChildViewModel(Client client)
        {
            _child = client;
            _child.PropertyChanged += Child_PropertyChanged;

            Caption = client.FirstName;
            Image   = ImageGetter.BabyIcon;

            ChildVisualCard   = new ChildVisualCardViewModel(_child);
            RelationList      = new RelationListViewModel(_child);
            ChildActionPanels = new List <IChildInfoPanel>
            {
                new ChildOverviewViewModel(_child),
                new EditChildViewModel(_child)
            };
        }