Reset the ribbon buttons enabling when a procedure tab is selected to fix <Shift><F5> issue so that Copy Step Paste options menu pops up B2016-148

This commit is contained in:
John Jenko 2016-06-29 19:30:32 +00:00
parent 1c82a65d0e
commit ffa8edbdd3

View File

@ -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)
{