public void ReprocessWorkQueueItem(ServerEntityKey itemKey) { if (itemKey != null) { Model.WorkQueue item = Model.WorkQueue.Load(itemKey); var controller = new WorkQueueController(); try { if (controller.ReprocessWorkQueueItem(item)) { InformationDialog.Message = SR.ReprocessOK; InformationDialog.MessageType = MessageBox.MessageTypeEnum.INFORMATION; InformationDialog.Show(); } else { InformationDialog.Message = SR.ReprocessFailed; InformationDialog.MessageType = MessageBox.MessageTypeEnum.ERROR; InformationDialog.Show(); } } catch(InvalidStudyStateOperationException ex) { ShowErrorMessage(ex.Message); } } }
private void ReprocessWorkQueueItem(Model.WorkQueue item) { try { var controller = new WorkQueueController(); if (controller.ReprocessWorkQueueItem(item)) { MessageBox.Message = SR.ReprocessOK; MessageBox.MessageType = MessageBox.MessageTypeEnum.INFORMATION; MessageBox.Show(); } else { ShowErrorMessage(SR.ReprocessFailed); } } catch(InvalidStudyStateOperationException ex) { ShowErrorMessage(ex.Message); } }