Ejemplo n.º 1
0
        void CreateNewChild()
        {
            Child          newChild  = Child.CreateNewChild();
            ChildViewModel workspace = new ChildViewModel(newChild, _childRepository);

            this.Workspaces.Add(workspace);
            this.SetActiveWorkspace(workspace);
        }
        void OnChildAddedToRepository(object sender, ChildAddedEventArgs e)
        {
            var viewModel = new ChildViewModel(e.NewChild, _childRepository);

            this.AllChilds.Add(viewModel);
        }