protected void UpdateUI() { if (Study != null) { string reason; DeleteStudyButton.Enabled = Study.CanScheduleDelete(out reason); if (!DeleteStudyButton.Enabled) { DeleteStudyButton.ToolTip = reason; } EditStudyButton.Enabled = Study.CanScheduleEdit(out reason); if (!EditStudyButton.Enabled) { EditStudyButton.ToolTip = reason; } ReprocessStudyButton.Enabled = Study.CanReprocess(out reason); if (!ReprocessStudyButton.Enabled) { ReprocessStudyButton.ToolTip = reason; } } SearchUpdatePanel.Update();// force update }