Ejemplo n.º 1
0
 /// <summary>
 /// Event für alle Ereignisse (Löschen, Ändern und Neu)
 /// </summary>
 /// <param name="type">Ein Element der <seealso cref="ItemNotificationType"/> Auflistung.</param>
 /// <param name="pArchiveSource">Das betroffene David Archiv.</param>
 /// <param name="pItems">Die betroffenen MessageItem2 Instanzen.</param>
 void DoItemNotificationEvent(ItemNotificationType type, Archive pArchiveSource, IArchiveNotifyItems pItems)
 {
     if (ItemNotificationEvent != null)
     {
         ItemNotificationEvent.Invoke(this, new ItemNotificationEventArgs(type, pItems, pArchiveSource));
     }
 }
Ejemplo n.º 2
0
 public void OnNewItems(Archive pArchiveSource, IArchiveNotifyItems pItems)
 {
     DoItemNotificationEvent(ItemNotificationType.New, pArchiveSource, pItems);
     this.ItemNewEvent?.Invoke(this, new ItemNotificationEventArgs(ItemNotificationType.New, pItems, pArchiveSource));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Erzeugt eine neue Instanz der <seealso cref="ItemNotificationEventArgs"/> Klasse.
 /// </summary>
 /// <param name="itemNotificationType">Benachrichtigungstyp.</param>
 /// <param name="msgItems2"></param>
 /// <param name="archive"></param>
 public ItemNotificationEventArgs(ItemNotificationType itemNotificationType, IArchiveNotifyItems msgItems2, Archive archive)
 {
     NotificationType = itemNotificationType;
     MsgItems2        = msgItems2;
     SourceArchive    = archive;
 }