Fixed so that it will compile

This commit is contained in:
Rich 2015-10-09 19:24:52 +00:00
parent 4109bb7bfe
commit fc05c5feec

View File

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