private void OnDataReceived(byte[] data) { var handler = DataReceived; if (handler != null) { handler(this, new ShellDataEventArgs(data)); } } }