added delegate for event to update the stages list

This commit is contained in:
John Jenko 2012-03-16 15:50:17 +00:00
parent 071d1a189c
commit ea55aba127

View File

@ -19,6 +19,7 @@ using System.ComponentModel;
using System.Collections.Generic;
namespace VEPROMS.CSLA.Library
{
public delegate void StageInfoListEvent();
/// <summary>
/// StageInfoList Generated by MyGeneration using the CSLA Object Mapping template
/// </summary>
@ -26,6 +27,12 @@ namespace VEPROMS.CSLA.Library
[TypeConverter(typeof(StageInfoListConverter))]
public partial class StageInfoList : ReadOnlyListBase<StageInfoList, StageInfo>, ICustomTypeDescriptor, IDisposable
{
public static event StageInfoListEvent ListChanged;
private static void OnListChanged()
{
if (ListChanged != null)
ListChanged();
}
#region Log4Net
private static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
#endregion
@ -70,6 +77,7 @@ namespace VEPROMS.CSLA.Library
StageInfo.AddList(tmp);
tmp.AddEvents();
_StageInfoList = tmp;
OnListChanged();
return tmp;
}
catch (Exception ex)