protected virtual void onMessageReceived ( PipeServerEventArgs e ) { if ( MessageReceived != null ) { MessageReceived( this, e ); } }
void _pipeServer_MessageReceived ( object sender, PipeServerEventArgs e ) { if ( e.Error != null ) { App.Instance.HandleException( e.Error ); } else { Action action = new Action( () => _txbBody.Text += string.Format( "\t{0}\r\n", e.Message ) ); Dispatcher.Invoke( action ); } }