added delegate for event to update the annotation list
This commit is contained in:
parent
12eaf94c09
commit
071d1a189c
@ -19,6 +19,7 @@ using System.ComponentModel;
|
||||
using System.Collections.Generic;
|
||||
namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
public delegate void AnnotationTypeInfoListEvent();
|
||||
/// <summary>
|
||||
/// AnnotationTypeInfoList Generated by MyGeneration using the CSLA Object Mapping template
|
||||
/// </summary>
|
||||
@ -26,6 +27,12 @@ namespace VEPROMS.CSLA.Library
|
||||
[TypeConverter(typeof(AnnotationTypeInfoListConverter))]
|
||||
public partial class AnnotationTypeInfoList : ReadOnlyListBase<AnnotationTypeInfoList, AnnotationTypeInfo>, ICustomTypeDescriptor, IDisposable
|
||||
{
|
||||
public static event AnnotationTypeInfoListEvent 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
|
||||
AnnotationTypeInfo.AddList(tmp);
|
||||
tmp.AddEvents();
|
||||
_AnnotationTypeInfoList = tmp;
|
||||
OnListChanged();
|
||||
return tmp;
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
Loading…
x
Reference in New Issue
Block a user