示例#1
0
        protected override void OnPreRender(EventArgs e)
        {
            if (WorkQueueItemKey == null || _workQueue == null)
            {
                // make sure all dialogs are closed
                ScheduleWorkQueueDialog.Hide();
                WorkQueueItemDetailsPanel.Visible = false;
                ResetWorkQueueDialog.Hide();

                Message.Text    = SR.WorkQueueNotAvailable;
                Message.Visible = true;

                UpdatePanel.Update();
            }
            else
            {
                Message.Visible = false;
            }

            WorkQueueItemDetailsPanel.AutoRefresh = !DeleteWorkQueueDialog.IsShown && !ScheduleWorkQueueDialog.IsShown;

            base.OnPreRender(e);
        }
示例#2
0
 private void ResetWorkQueueItem()
 {
     ResetWorkQueueDialog.WorkQueueItemKey = WorkQueueItemKey;
     ResetWorkQueueDialog.Show();
 }