private void OnDataReceived(DataEventArgs e) { var handler = DataReceived; if (handler != null) { handler(this, e); } }
private void OnDataSent(DataEventArgs e) { var handler = DataSent; if (handler != null) { handler(this, e); } }