Beispiel #1
0
        protected void DisplayData(string Message)
        {
            ProtocolDisplayedDataChangeEventArgs e = new ProtocolDisplayedDataChangeEventArgs(Message);
            EventHandler <ProtocolDisplayedDataChangeEventArgs> handler = DisplayedDataChange;

            if (handler != null)
            {
                handler(this, e);
            }
        }
 private void HandleDisplayedDataChange(object sender, ProtocolDisplayedDataChangeEventArgs e)
 {
     MethodInvoker action = delegate
     { textBoxProtocolData.Text =e.Message; };
     textBoxProtocolData.BeginInvoke(action);
 }
Beispiel #3
0
 protected void DisplayData(string Message)
 {
     ProtocolDisplayedDataChangeEventArgs e = new ProtocolDisplayedDataChangeEventArgs(Message);
     EventHandler<ProtocolDisplayedDataChangeEventArgs> handler = DisplayedDataChange;
     if (handler != null)
     {
         handler(this, e);
     }
 }