void CreateNewOrigin() { Origin newOrigin = Origin.CreateNewOrigin(); OriginViewModel workspace = new OriginViewModel(newOrigin, _originService); this.Workspaces.Add(workspace); this.SetActiveWorkspace(workspace); }
void OnOriginAddedToRepository(object sender, EntityAddedEventArgs<Origin> e) { var viewModel = new OriginViewModel(e.NewEntity, _originService); this.AllOrigins.Add(viewModel); }