Пример #1
0
        private void TriggerBulkCopyFieldValue(bool selectedOnly)
        {
            var recordsToUpdate = GetRecordsToProcess(selectedOnly);

            var request          = new BulkCopyFieldValueRequest(new RecordType(QueryViewModel.RecordType, RecordService.GetDisplayName(QueryViewModel.RecordType)), recordsToUpdate);
            var bulkUpdateDialog = new BulkCopyFieldValueDialog(RecordService, (IDialogController)ApplicationController.ResolveType(typeof(IDialogController)), request, () => { ClearChildForms(); QueryViewModel.DynamicGridViewModel.ReloadGrid(); });

            LoadChildForm(bulkUpdateDialog);
        }
 private void TriggerBulkCopyFieldValue(bool selectedOnly)
 {
     ApplicationController.DoOnAsyncThread(() =>
     {
         var recordsToUpdate           = GetRecordsToProcess(selectedOnly);
         var request                   = new BulkCopyFieldValueRequest(new RecordType(QueryViewModel.RecordType, RecordService.GetDisplayName(QueryViewModel.RecordType)), recordsToUpdate);
         request.AllowExecuteMultiples = RecordService.SupportsExecuteMultiple;
         var bulkUpdateDialog          = new BulkCopyFieldValueDialog(RecordService, (IDialogController)ApplicationController.ResolveType(typeof(IDialogController)), request, CompleteChildDialogAndReload);
         LoadChildForm(bulkUpdateDialog);
     });
 }