Inheritance: System.EventArgs
Ejemplo n.º 1
0
        private void OnPingResponse(IPAddress serverAddress, PingResponseType result, int responseTime, int byteCount, ref bool cancel)
        {
            PingResponseEventHandler temp = PingResponse;

            if (temp != null)
            {
                PingResponseEventArgs e = new PingResponseEventArgs(serverAddress, result, responseTime, byteCount, cancel);

                temp(this, e);

                cancel = e.Cancel;
            }
        }
Ejemplo n.º 2
0
        private void OnPingResponse(IPAddress serverAddress, PingResponseType result, int responseTime, int byteCount, ref bool cancel)
        {
            PingResponseEventHandler temp = PingResponse;

            if (temp != null)
            {
                PingResponseEventArgs e = new PingResponseEventArgs(serverAddress, result, responseTime, byteCount, cancel);

                temp(this, e);

                cancel = e.Cancel;
            }
        }