void OnNotamCodeAddedToRepository(object sender, EntityAddedEventArgs<NotamCode> e) { var viewModel = new NotamCodeViewModel(e.NewEntity, _notamCodeService); this.AllNotamCodes.Add(viewModel); }
void CreateNewNotamCode() { NotamCode newNotamCode = NotamCode.CreateNewNotamCodes(); NotamCodeViewModel workspace = new NotamCodeViewModel(newNotamCode, _notamCodeService); this.Workspaces.Add(workspace); this.SetActiveWorkspace(workspace); }