New Enhanced Document Properties

Fixed Find and Replace logic to keep it from getting into an infinite loop
Used new CSLA code to hanndle deletion of procedures with external transitions
New Enhanced Document properties
This commit is contained in:
Rich
2015-10-27 13:34:33 +00:00
parent e22458bd1a
commit 58e58083c2
7 changed files with 242 additions and 197 deletions

View File

@@ -455,8 +455,7 @@ namespace Volian.Controls.Library
if (!readOnlyStep)
{
StepConfig sc = new StepConfig(MyItemInfo.MyContent.Config);
//if (IsDerived(sc))
if (sc.Step_BackgroundToSource != null || sc.Step_DeviationToSource != null)
if (IsDerived(sc))
readOnlyStep = true;
}
ReadOnly = readOnlyStep || VwMode == E_ViewMode.View || ActiveMode == false;
@@ -542,13 +541,13 @@ namespace Volian.Controls.Library
AdjustSizeForContents(!ActiveMode);
}
// private bool IsDerived(StepConfig sc)
// {
// foreach (EnhancedDocument ed in sc.MyEnhancedDocuments)
// if (ed.Type == 0) //New Design
// return true;
// return false;
// }
private bool IsDerived(StepConfig sc)
{
foreach (EnhancedDocument ed in sc.MyEnhancedDocuments)
if (ed.Type == 0) //New Design
return true;
return false;
}
private bool _ProcessKeystrokes = true;
public bool ProcessKeystrokes
{