From fc05c5feec17b44dbb1e21f5994db3dd37ab9fe5 Mon Sep 17 00:00:00 2001 From: Rich Date: Fri, 9 Oct 2015 19:24:52 +0000 Subject: [PATCH] Fixed so that it will compile --- PROMS/Volian.Controls.Library/StepRTB.cs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/PROMS/Volian.Controls.Library/StepRTB.cs b/PROMS/Volian.Controls.Library/StepRTB.cs index 0edaed0b..9f09a6de 100644 --- a/PROMS/Volian.Controls.Library/StepRTB.cs +++ b/PROMS/Volian.Controls.Library/StepRTB.cs @@ -455,7 +455,8 @@ namespace Volian.Controls.Library if (!readOnlyStep) { StepConfig sc = new StepConfig(MyItemInfo.MyContent.Config); - if (IsDerived(sc)) + //if (IsDerived(sc)) + if (sc.Step_BackgroundToSource != null || sc.Step_DeviationToSource != null) readOnlyStep = true; } ReadOnly = readOnlyStep || VwMode == E_ViewMode.View || ActiveMode == false; @@ -541,15 +542,13 @@ namespace Volian.Controls.Library AdjustSizeForContents(!ActiveMode); } - - private bool IsDerived(StepConfig sc) - { - foreach (EnhancedDocument ed in sc.MyEnhancedDocuments) - if (ed.Type == "Source") +// private bool IsDerived(StepConfig sc) +// { +// foreach (EnhancedDocument ed in sc.MyEnhancedDocuments) // if (ed.Type == 0) //New Design - return true; - return false; - } +// return true; +// return false; +// } private bool _ProcessKeystrokes = true; public bool ProcessKeystrokes {