Added code to provide information regarding transitions that are being fixed using the Fix Transitions menu item.

Added code to fix transitions that involve Section, SubSections and Steps as part of the path to the transition and how this is rendered in the step's text.
This commit is contained in:
Rich
2014-10-22 00:55:04 +00:00
parent 6c564c8e4d
commit bf99440bde
3 changed files with 57 additions and 6 deletions

View File

@@ -363,8 +363,35 @@ namespace VEPROMS.CSLA.Library
return retval;
}
}
public delegate void StaticContentInfoEvent(object sender, StaticContentInfoEventArgs args);
public class StaticContentInfoEventArgs
{
string _OldValue;
public string OldValue
{
get { return _OldValue; }
set { _OldValue = value; }
}
string _NewValue;
public string NewValue
{
get { return _NewValue; }
set { _NewValue = value; }
}
public StaticContentInfoEventArgs(string oldValue, string newValue)
{
_OldValue = oldValue;
_NewValue = newValue;
}
}
public partial class ContentInfo
{
public static event StaticContentInfoEvent StaticContentInfoChange;
private static void OnStaticContentInfoChange(object sender, StaticContentInfoEventArgs args)
{
if (StaticContentInfoChange != null)
StaticContentInfoChange(sender, args);
}
public string MyContentMessage = string.Empty;
public string MyGridMessage = string.Empty;
public bool InList(params int[] IDs)
@@ -414,6 +441,7 @@ namespace VEPROMS.CSLA.Library
if (gg != newvalue)
{
_Text = Text.Substring(0, myIndex) + newvalue + Text.Substring(myIndex + myLength);
OnStaticContentInfoChange(this, new StaticContentInfoEventArgs(gg, newvalue));
break; // Text has been processed
}
}