private void ExecuteShowProgramEditCommand( ProgramDto programDto ) { _popupService.ShowPopup ( "EditProgramView", "Edit", "Edit Program", new[] { new KeyValuePair<string, string> ( "ProgramKey", programDto.Key.ToString () ) }, true ); }
private void ExecuteToggleActiveIndicator( ProgramDto programDto ) { var requestDispatcher = _asyncRequestDispatcherFactory.CreateAsyncRequestDispatcher (); requestDispatcher.Add ( new SaveDtoRequest<ProgramDto> { DataTransferObject = programDto } ); requestDispatcher.ProcessRequests ( HandleSaveProgramCompleted, HandleSaveProgramException ); }
private void ExecuteDeleteProgramCommand( ProgramDto programDto ) { 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 DeleteProgramRequest { ProgramKey = programDto.Key, AgencyKey = _agencyKey } ); IsLoading = true; requestDispatcher.ProcessRequests ( HandleDeleteProgramCompleted, HandleDeleteProgramException ); } }