From ffa8edbdd3e9dd516b91a265d97e2c7a1a412d9d Mon Sep 17 00:00:00 2001 From: John Date: Wed, 29 Jun 2016 19:30:32 +0000 Subject: [PATCH] Reset the ribbon buttons enabling when a procedure tab is selected to fix issue so that Copy Step Paste options menu pops up B2016-148 --- PROMS/VEPROMS User Interface/frmVEPROMS.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PROMS/VEPROMS User Interface/frmVEPROMS.cs b/PROMS/VEPROMS User Interface/frmVEPROMS.cs index 3114c506..2679525c 100644 --- a/PROMS/VEPROMS User Interface/frmVEPROMS.cs +++ b/PROMS/VEPROMS User Interface/frmVEPROMS.cs @@ -2978,6 +2978,13 @@ namespace VEPROMS btnPrint.Visible = false; else btnPrint.Visible = true; + // Reset the ribbon buttons B2016-148 (ex. a copystep done in a different procedure tab my require the paste step options to be active + if (tc.SelectedDisplayTabItem != null && tc.SelectedDisplayTabItem.MyStepTabPanel != null) // MyStepTabPanel will be null if the active tab is a Word Attachment + { + StepPanel pnl = tc.SelectedDisplayTabItem.MyStepTabPanel.MyStepPanel; + if (pnl != null) + pnl.MyStepTabPanel.MyStepTabRibbon.SetButtonAndMenuEnabling(true); + } } private void tc_StepPanelModeChange(object sender, StepRTBModeChangeEventArgs args) {