commented out test coding to save for now.

use the ordinal step number instead of the step tab if the transition is to a non-numbered step
added bool to track if the new transition is to a non-numbered step
This commit is contained in:
2012-11-14 19:17:58 +00:00
parent 754d4a8651
commit c0d0c3d08e
3 changed files with 26 additions and 1 deletions

View File

@@ -19,6 +19,10 @@ namespace VEPROMS.CSLA.Library
public void FixTransitionText(TransitionInfo tran)
{
string transText = tran.ResolvePathTo();
//if (transText == string.Empty)
//{
// transText = tran.MyItemToID.Ordinal.ToString();
//}
string lookFor = string.Format(@"<START\](\\[^v \\]+)*\\v0(\\[^v \\]+)* ([^#]*?)(\\[^v'? \\]+)*\\v(\\[^v \\]+)* #Link:Transition[^:]*?:{0} {1}( [0-9]*){{1,2}}\[END>", tran.TranType, tran.TransitionID);
//string lookFor = string.Format(@"<START\]\\v0 ([^#]*?)\\v #Link:Transition[^:]*?:{0} {1} [0-9]*\[END>", tran.TranType, tran.TransitionID);
Match m = Regex.Match(Text, lookFor);