Example #1
0
        /// <summary>
        /// Raises the InSimError event.
        /// </summary>
        /// <param name="e">The <see cref="InSimErrorEventArgs"/> object containing the event data</param>
        protected virtual void OnInSimError(InSimErrorEventArgs e)
        {
            EventHandler <InSimErrorEventArgs> temp = InSimError;

            if (temp != null)
            {
                temp(this, e);
            }
        }
        private void raceControl_InSimError(object sender, InSimErrorEventArgs e) {
            // called if an error occurs on a background thread
            UpdateUI();

            MessageBox.Show(this, e.Exception.Message, "InSim Error");
        }
Example #3
0
 private void UdpSocket_SocketError(object sender, InSimErrorEventArgs e)
 {
     TcpSocket.Disconnect();
     OnInSimError(e);
 }
 /// <summary>
 /// Raises the SocketError event.
 /// </summary>
 /// <param name="e">The <see cref="InSimErrorEventArgs"/> object containing the event data</param>
 protected virtual void OnSocketError(InSimErrorEventArgs e) {
     EventHandler<InSimErrorEventArgs> temp = SocketError;
     if (temp != null) {
         temp(this, e);
     }
 }