From 9180fba5ecc1f800c7734ef8a759aca63e2914bd Mon Sep 17 00:00:00 2001 From: Rich Date: Fri, 8 Jan 2010 14:33:38 +0000 Subject: [PATCH] Bug Fix - Delete button enabled for other than procedure StepItems --- PROMS/Volian.Controls.Library/StepTabRibbon.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.cs index 7267fc78..db08c294 100644 --- a/PROMS/Volian.Controls.Library/StepTabRibbon.cs +++ b/PROMS/Volian.Controls.Library/StepTabRibbon.cs @@ -363,9 +363,9 @@ namespace Volian.Controls.Library } btnInsPgBrk.Enabled = MyItemInfo.IsHigh; btnEditMode.Checked = btnCMEditMode1.Checked = MyStepItem.MyStepPanel.PanelViewEditMode != E_ViewMode.View; - - // if on procedure or section 'change type' & 'insert' buttons should be disabled. - if (MyItemInfo.IsProcedure) btnDelelete.Enabled = btnDelStep.Enabled = false; + // if on procedure, 'Delete' buttons should be disabled. + btnDelelete.Enabled = btnDelStep.Enabled = ! MyItemInfo.IsProcedure; + // if on procedure or section, 'change type' & 'insert' buttons should be disabled. if (MyItemInfo.IsProcedure || MyItemInfo.IsSection) { btnChgTyp.Enabled = false;