123456789101112131415161718192021222324 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Uestc.Auto6.Dso.Core
- {
- public class PresenterCollection : Collection
- {
- public event EventHandler<CustomEventArg>? PublisherChanged;
- public PresenterCollection(string id, IBroadcaster pub) : base(id, pub)
- {
- IBroadcaster.StaticPublisherChanged += HandleCustomEvent;
- }
- public override void HandleCustomEvent(object? sender, CustomEventArg e)
- {
- PublisherChanged?.Invoke(sender, e);
- return;
- }
- }
- }
|