From 071d1a189c0c74ed08b7aae3b2067f426a412d8e Mon Sep 17 00:00:00 2001 From: John Date: Fri, 16 Mar 2012 15:49:44 +0000 Subject: [PATCH] added delegate for event to update the annotation list --- .../Generated/AnnotationTypeInfoList.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/AnnotationTypeInfoList.cs b/PROMS/VEPROMS.CSLA.Library/Generated/AnnotationTypeInfoList.cs index ed9fbc4b..5b4ad5c5 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/AnnotationTypeInfoList.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/AnnotationTypeInfoList.cs @@ -19,6 +19,7 @@ using System.ComponentModel; using System.Collections.Generic; namespace VEPROMS.CSLA.Library { + public delegate void AnnotationTypeInfoListEvent(); /// /// AnnotationTypeInfoList Generated by MyGeneration using the CSLA Object Mapping template /// @@ -26,6 +27,12 @@ namespace VEPROMS.CSLA.Library [TypeConverter(typeof(AnnotationTypeInfoListConverter))] public partial class AnnotationTypeInfoList : ReadOnlyListBase, 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)