From d972d277bc7a733f144c082f1eb523e48af300a3 Mon Sep 17 00:00:00 2001 From: Kathy Date: Fri, 26 May 2017 12:30:13 +0000 Subject: [PATCH] =?UTF-8?q?B2017-101:=20Supplemental=20Information=20Steps?= =?UTF-8?q?:=20Don=E2=80=99t=20allow=20insert=20before=20&=20after.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Controls.Library/StepTabRibbon.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.cs index 869094d1..a23cd22d 100644 --- a/PROMS/Volian.Controls.Library/StepTabRibbon.cs +++ b/PROMS/Volian.Controls.Library/StepTabRibbon.cs @@ -1586,6 +1586,11 @@ namespace Volian.Controls.Library btnPasteReplace.Enabled = btnCMPasteReplace.Enabled = false; // don't replace itself return; } + if (MyItemInfo.IsSupInfoPart) // before and after are always false: + { + btnPasteAfter.Enabled = btnCMPasteAfter.Enabled = false; + btnPasteBefore.Enabled = btnCMPasteBefore.Enabled = false; + } // for now (Jan 2016 - initial implementation of enhanced document support) do NOT paste any step (MyCopyStep) that has enhanced data associated // with it unless pasting within a enhanced source document. The reason is that code would need to handle clearing the pasted enhanced config // data if it is pasted into a non-enhanced location.