Added range Transtion 2,3,4,5,6 and 7
This commit is contained in:
parent
d465521f2c
commit
2ccc4078ce
@ -328,7 +328,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
// format....
|
// format....
|
||||||
if (tranType > tb._FormatData.TransData.TransTypeList.Count)
|
if (tranType > tb._FormatData.TransData.TransTypeList.Count)
|
||||||
tranType = 0;
|
tranType = 0;
|
||||||
tb._TransFormat = tb._FormatData.TransData.TransTypeList[tranType].TransFormat;
|
tb._TransFormat = tb._FormatData.TransData.TransTypeList[tranType].TransFormat.Replace(", {.}, {.}, {.}", "{.}");
|
||||||
tb._TransUI = (E_TransUI)tb._FormatData.TransData.TransTypeList[tranType].TransUI;
|
tb._TransUI = (E_TransUI)tb._FormatData.TransData.TransTypeList[tranType].TransUI;
|
||||||
tb._FromItem = fromInfo;
|
tb._FromItem = fromInfo;
|
||||||
tb._TranType = tranType;
|
tb._TranType = tranType;
|
||||||
@ -499,10 +499,21 @@ namespace VEPROMS.CSLA.Library
|
|||||||
private static bool AddIncludedStepNumber(bool textAdded, TransitionBuilder tb, string token, string nonToken)
|
private static bool AddIncludedStepNumber(bool textAdded, TransitionBuilder tb, string token, string nonToken)
|
||||||
{
|
{
|
||||||
if (textAdded) Append(tb, nonToken, false);
|
if (textAdded) Append(tb, nonToken, false);
|
||||||
Append(tb, Tab(tb._ToItem), true); // TODO: Intermediate Range.
|
ItemInfo next = GetNextItem(tb._ToItem);
|
||||||
|
while (next.ItemID != tb._RangeItem.ItemID)
|
||||||
|
{
|
||||||
|
Append(tb, ", " + Tab(next), true); // TODO: Intermediate Range.
|
||||||
|
next = GetNextItem(next);
|
||||||
|
}
|
||||||
textAdded = true;
|
textAdded = true;
|
||||||
return textAdded;
|
return textAdded;
|
||||||
}
|
}
|
||||||
|
private static ItemInfo GetNextItem(ItemInfo next)
|
||||||
|
{
|
||||||
|
while (next.NextItem == null)
|
||||||
|
next = next.ActiveParent as ItemInfo;
|
||||||
|
return next.NextItem;
|
||||||
|
}
|
||||||
private static bool AddOptionalTranGetSectionHdr(bool textAdded, TransitionBuilder tb, string token, string nonToken)
|
private static bool AddOptionalTranGetSectionHdr(bool textAdded, TransitionBuilder tb, string token, string nonToken)
|
||||||
{
|
{
|
||||||
// output from 16-bit code looks like section header
|
// output from 16-bit code looks like section header
|
||||||
|
Loading…
x
Reference in New Issue
Block a user