added delegate for event to update the stages list
This commit is contained in:
parent
071d1a189c
commit
ea55aba127
@ -19,6 +19,7 @@ using System.ComponentModel;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
namespace VEPROMS.CSLA.Library
|
namespace VEPROMS.CSLA.Library
|
||||||
{
|
{
|
||||||
|
public delegate void StageInfoListEvent();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// StageInfoList Generated by MyGeneration using the CSLA Object Mapping template
|
/// StageInfoList Generated by MyGeneration using the CSLA Object Mapping template
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -26,6 +27,12 @@ namespace VEPROMS.CSLA.Library
|
|||||||
[TypeConverter(typeof(StageInfoListConverter))]
|
[TypeConverter(typeof(StageInfoListConverter))]
|
||||||
public partial class StageInfoList : ReadOnlyListBase<StageInfoList, StageInfo>, ICustomTypeDescriptor, IDisposable
|
public partial class StageInfoList : ReadOnlyListBase<StageInfoList, StageInfo>, ICustomTypeDescriptor, IDisposable
|
||||||
{
|
{
|
||||||
|
public static event StageInfoListEvent ListChanged;
|
||||||
|
private static void OnListChanged()
|
||||||
|
{
|
||||||
|
if (ListChanged != null)
|
||||||
|
ListChanged();
|
||||||
|
}
|
||||||
#region Log4Net
|
#region Log4Net
|
||||||
private static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
#endregion
|
#endregion
|
||||||
@ -70,6 +77,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
StageInfo.AddList(tmp);
|
StageInfo.AddList(tmp);
|
||||||
tmp.AddEvents();
|
tmp.AddEvents();
|
||||||
_StageInfoList = tmp;
|
_StageInfoList = tmp;
|
||||||
|
OnListChanged();
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user