This commit is contained in:
2009-09-01 14:25:59 +00:00
parent 1e68d76923
commit de9081036c
2 changed files with 42 additions and 11 deletions

View File

@@ -28,6 +28,17 @@ namespace VEPROMS.CSLA.Library
Text = Text.Substring(0, g.Index) + transText + Text.Substring(g.Index + g.Length);
}
}
public void FixContentText(RoUsageInfo rousg, string newvalue)
{
string lookFor = string.Format(@"<START\]\\v0 (.*?)\\v #Link:ReferencedObject:{0} .*?\[END>", rousg.ROUsageID);
Match m = Regex.Match(Text, lookFor);
if (m != null && m.Groups.Count > 1)
{
System.Text.RegularExpressions.Group g = m.Groups[1];
if (g.ToString() != newvalue)
Text = Text.Substring(0, g.Index) + newvalue + Text.Substring(g.Index + g.Length);
}
}
}
public partial class ContentInfo
{