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