Esempio n. 1
0
 private void snifferClient_DataRecieved(object sender, DataReceivedEventArgs e) {
    // Propagate the event to the UI
    if (DataRecieved != null) {
       DataRecieved(this, new DataReceivedEventArgs { MessageLog = e.MessageLog });
    }
 }
 /// <summary>Handles the DataRecieved event of the tcpSniffer.</summary>
 private void tcpSniffer_DataRecieved(object sender, DataReceivedEventArgs e) {
    // Dispatch update to the UI thread
    GuiThread.Dispatch(() => { this.messageLogs.Add(e.MessageLog); });
 }