Fixed so that it will compile
This commit is contained in:
parent
4109bb7bfe
commit
fc05c5feec
@ -455,7 +455,8 @@ namespace Volian.Controls.Library
|
|||||||
if (!readOnlyStep)
|
if (!readOnlyStep)
|
||||||
{
|
{
|
||||||
StepConfig sc = new StepConfig(MyItemInfo.MyContent.Config);
|
StepConfig sc = new StepConfig(MyItemInfo.MyContent.Config);
|
||||||
if (IsDerived(sc))
|
//if (IsDerived(sc))
|
||||||
|
if (sc.Step_BackgroundToSource != null || sc.Step_DeviationToSource != null)
|
||||||
readOnlyStep = true;
|
readOnlyStep = true;
|
||||||
}
|
}
|
||||||
ReadOnly = readOnlyStep || VwMode == E_ViewMode.View || ActiveMode == false;
|
ReadOnly = readOnlyStep || VwMode == E_ViewMode.View || ActiveMode == false;
|
||||||
@ -541,15 +542,13 @@ namespace Volian.Controls.Library
|
|||||||
|
|
||||||
AdjustSizeForContents(!ActiveMode);
|
AdjustSizeForContents(!ActiveMode);
|
||||||
}
|
}
|
||||||
|
// private bool IsDerived(StepConfig sc)
|
||||||
private bool IsDerived(StepConfig sc)
|
// {
|
||||||
{
|
// foreach (EnhancedDocument ed in sc.MyEnhancedDocuments)
|
||||||
foreach (EnhancedDocument ed in sc.MyEnhancedDocuments)
|
|
||||||
if (ed.Type == "Source")
|
|
||||||
// if (ed.Type == 0) //New Design
|
// if (ed.Type == 0) //New Design
|
||||||
return true;
|
// return true;
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
private bool _ProcessKeystrokes = true;
|
private bool _ProcessKeystrokes = true;
|
||||||
public bool ProcessKeystrokes
|
public bool ProcessKeystrokes
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user