示例#1
0
        public void HideRescheduleDialog()
        {
            ScheduleWorkQueueDialog.Hide();
            var itemList = FindControl("WorkQueueItemList") as WorkQueueItemList;

            if (itemList != null)
            {
                itemList.Refresh();
            }
        }
示例#2
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);
        }