private void SegmentParser_DataReceived(object sender, NetDataReceivedEventArgs e) { MessageSegmentParser parser = (MessageSegmentParser)sender; RemoveSegmentParser(parser); OnMessageReceived(e); }
private void OnMessageReceived(NetDataReceivedEventArgs e) { if (DataReceived != null) { DataReceived(this, e); } }