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