示例#1
0
 private void ExecuteShowProgramEditCommand( ProgramDto programDto )
 {
     _popupService.ShowPopup (
         "EditProgramView",
         "Edit",
         "Edit Program",
         new[] { new KeyValuePair<string, string> ( "ProgramKey", programDto.Key.ToString () ) },
         true );
 }
示例#2
0
 private void ExecuteToggleActiveIndicator( ProgramDto programDto )
 {
     var requestDispatcher = _asyncRequestDispatcherFactory.CreateAsyncRequestDispatcher ();
     requestDispatcher.Add ( new SaveDtoRequest<ProgramDto> { DataTransferObject = programDto } );
     requestDispatcher.ProcessRequests ( HandleSaveProgramCompleted, HandleSaveProgramException );
 }
示例#3
0
        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 );
            }
        }