Update Transition Text
This commit is contained in:
@@ -12,7 +12,6 @@ using VEPROMS.CSLA.Library;
|
|||||||
|
|
||||||
namespace Volian.Controls.Library
|
namespace Volian.Controls.Library
|
||||||
{
|
{
|
||||||
|
|
||||||
public delegate void StepRTBEvent(object sender, EventArgs args);
|
public delegate void StepRTBEvent(object sender, EventArgs args);
|
||||||
public delegate void StepRTBCursorKeysEvent(object sender, KeyEventArgs args);
|
public delegate void StepRTBCursorKeysEvent(object sender, KeyEventArgs args);
|
||||||
public delegate void StepRTBCursorMovementEvent(object sender, StepRTBCursorMovementEventArgs args);
|
public delegate void StepRTBCursorMovementEvent(object sender, StepRTBCursorMovementEventArgs args);
|
||||||
@@ -513,7 +512,7 @@ namespace Volian.Controls.Library
|
|||||||
{
|
{
|
||||||
if (ReadOnly) return;
|
if (ReadOnly) return;
|
||||||
if (ViewRTB) return;
|
if (ViewRTB) return;
|
||||||
if (!_IsDirty) return;
|
if (!_IsDirty && Text.Contains("(Resolved Transition Text)") == false) return;
|
||||||
bool success = _origDisplayText.Save((RichTextBox)this);
|
bool success = _origDisplayText.Save((RichTextBox)this);
|
||||||
if (success)
|
if (success)
|
||||||
{
|
{
|
||||||
@@ -1914,8 +1913,8 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
sb.Append(line.Substring(lastIndex)); // Append the text following the last link
|
sb.Append(line.Substring(lastIndex)); // Append the text following the last link
|
||||||
string result = sb.ToString();
|
string result = sb.ToString();
|
||||||
MatchCollection mcEnd = Regex.Matches(line, @"#Link.*?\[END>");
|
|
||||||
result = result.Replace(@"<START]", "");
|
result = result.Replace(@"<START]", "");
|
||||||
|
MatchCollection mcEnd = Regex.Matches(result, @"#Link.*?\[END>");
|
||||||
if (mcEnd.Count > 0)
|
if (mcEnd.Count > 0)
|
||||||
{
|
{
|
||||||
result = result.Substring(0, mcEnd[0].Index - 1) + result.Substring(mcEnd[0].Index + mcEnd[0].Length);
|
result = result.Substring(0, mcEnd[0].Index - 1) + result.Substring(mcEnd[0].Index + mcEnd[0].Length);
|
||||||
|
Reference in New Issue
Block a user