protected override void OnPreRender(EventArgs e) { PreResetConfirmDialog.Close(); if (IsShown) { if (WorkQueue != null) { PreResetConfirmDialog.Show(); } } base.OnPreRender(e); }
/// <summary> /// Displays the dialog box for reseting the <see cref="WorkQueue"/> entry. /// </summary> /// <remarks> /// The <see cref="ArchiveQueueItemList"/> to be deleted must be set prior to calling <see cref="Show"/>. /// </remarks> public void Show() { DataBind(); if (_archiveQueueItemList != null) { PreResetConfirmDialog.Data = ArchiveQueueItemList; PreResetConfirmDialog.MessageType = MessageBox.MessageTypeEnum.YESNO; if (_archiveQueueItemList.Count > 1) { PreResetConfirmDialog.Message = SR.MultipleArchiveQueueResetConfirm; } else { PreResetConfirmDialog.Message = SR.ArchiveQueueResetConfirm; } PreResetConfirmDialog.Show(); } }