/// <summary> /// Popup a dialog to reschedule the work queue item. /// </summary> /// <param name="itemKey"></param> public void RescheduleWorkQueueItem(ServerEntityKey itemKey) { if (itemKey == null) { return; } var adaptor = new WorkQueueAdaptor(); Model.WorkQueue item = adaptor.Get(itemKey); if (item == null) { InformationDialog.Message = SR.WorkQueueNotAvailable; InformationDialog.Show(); } else { if (item.WorkQueueStatusEnum == WorkQueueStatusEnum.InProgress) { // prompt the user first InformationDialog.Message = SR.WorkQueueBeingProcessed_CannotReschedule; InformationDialog.MessageType = MessageBox.MessageTypeEnum.ERROR; InformationDialog.Show(); return; } if (item.WorkQueueStatusEnum == WorkQueueStatusEnum.Failed) { InformationDialog.Message = SR.WorkQueueFailed_CannotReschedule; InformationDialog.MessageType = MessageBox.MessageTypeEnum.ERROR; InformationDialog.Show(); return; } ScheduleWorkQueueDialog.WorkQueueKeys = new List <ServerEntityKey> { itemKey }; ScheduleWorkQueueDialog.Reset(); ScheduleWorkQueueDialog.Show(); } }
void ConfirmationContinueDialog_Confirmed(object data) { DataBind(); ScheduleWorkQueueDialog.Show(); }
public void HideRescheduleDialog() { ScheduleWorkQueueDialog.Hide(); }