Esempio n. 1
0
 protected virtual void onMessageReceived ( PipeServerEventArgs e )
 {
     if ( MessageReceived != null )
     {
         MessageReceived( this, e );
     }
 }
Esempio n. 2
0
 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 );
     }
 }