Callaway improvements

Callaway improvements (ReadOnly step format property)
Initial FNPNMP
Initial fnpnmp
This commit is contained in:
2013-09-25 16:06:09 +00:00
parent 3363a94037
commit 7cbe3f651f
6 changed files with 45 additions and 1 deletions

View File

@@ -871,6 +871,7 @@ public struct Step
public int Index;
public string Type;
public string ParentType;
public string ReadOnly;
public string Inactive;
public string ColOverride;
public string ColOverrideEdit;
@@ -5202,6 +5203,7 @@ namespace fmtxml
#endregion
#region DoStepInherit
delegate string StepPartStr(Step stp);
private string StepPartReadOnly(Step stp) { return stp.ReadOnly; }
private string StepPartInactive(Step stp) { return stp.Inactive; }
private string StepPartColOverride(Step stp) { return stp.ColOverride; }
private string StepPartColOverrideEdit(Step stp) { return stp.ColOverrideEdit; }
@@ -5417,6 +5419,7 @@ namespace fmtxml
private void FixInheritance(ref Step step, Dictionary<string, Step> dicParents)
{
if (CheckInheritedStr(new StepPartStr(StepPartReadOnly), step, dicParents)) step.ReadOnly = null;
if (CheckInheritedStr(new StepPartStr(StepPartInactive), step, dicParents)) step.Inactive = null;
if (CheckInheritedStr(new StepPartStr(StepPartColOverride), step, dicParents)) step.ColOverride = NullString;
if (CheckInheritedStr(new StepPartStr(StepPartColOverrideEdit), step, dicParents)) step.ColOverrideEdit = NullString;