This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user