private void ExecuteShowProgramOfferingEditCommand( ProgramOfferingDto programOfferingDto ) { _popupService.ShowPopup ( "ProgramOfferingEditorView", "Edit", "Edit Program Offering", new[] { new KeyValuePair<string, string> ( "LocationKey", _locationKey.ToString () ), new KeyValuePair<string, string> ( "ProgramOfferingKey", programOfferingDto.Key.ToString () ), }, true, ProgramOfferingsClosed ); }
private void ExecuteToggleActiveIndicator( ProgramOfferingDto programOfferingDto ) { var requestDispatcher = _asyncRequestDispatcherFactory.CreateAsyncRequestDispatcher (); requestDispatcher.Add ( new SaveDtoRequest<ProgramOfferingDto> { DataTransferObject = programOfferingDto } ); requestDispatcher.ProcessRequests ( HandleSaveProgramOfferingCompleted, HandleSaveProgramException ); }
private void ExecuteDeleteProgramOfferingCommand( ProgramOfferingDto programOfferingDto ) { var result = _userDialogService.ShowDialog ( "Are you sure you want to delete?", "Confirmation", UserDialogServiceOptions.OkCancel ); if ( result == UserDialogServiceResult.Ok ) { var requestDispatcher = _asyncRequestDispatcherFactory.CreateAsyncRequestDispatcher (); requestDispatcher.Add ( new DeleteProgramOfferingRequest { ProgramOfferingKey = programOfferingDto.Key, LocationKey = _locationKey } ); IsLoading = true; requestDispatcher.ProcessRequests ( HandleDeleteProgramOfferingCompleted, HandleDeleteProgramOfferingException ); } }