private void AddEventHandler(MessageType type, Delegate handler) { _handlers.AddHandler(type.Name, handler); }
private void RemoveEventHandler(MessageType type, Delegate handler) { _handlers.RemoveHandler(type.Name, handler); }
/// <summary> /// Initializes a new instance of the PsEvent class. /// </summary> /// <param name="type">Type of event.</param> public PsEvent(MessageType type) { Type = type; }