private void ElkPanel_SimplEvent(object sender, SimplEventArgs e) { switch (e.ID) { case eElkSimplEventIds.IsRegistered: if (onIsRegistered != null) { onIsRegistered(e.IntData); } break; case eElkSimplEventIds.IsConnected: if (onIsConnected != null) { onIsConnected(e.IntData); } break; default: break; } }
internal void Fire(SimplEventArgs e) { onNewEvent(null, e); }