コード例 #1
0
 /// <summary>
 /// Raises a FatalErrorEvent for this test.
 /// </summary>
 /// <param name="e">The event arguments.</param>
 // MM/DD/YY who Version Issue# Description
 // -------- --- ------- ------ -------------------------------------------
 // 04/08/14 jrf 3.50.69 458134 Created
 protected virtual void OnFatalError(ItronErrorEventArgs e)
 {
     if (FatalErrorEvent != null)
     {
         FatalErrorEvent(this, e);
     }
 }//OnFatalError
コード例 #2
0
        /// <summary>
        /// Event handler that handles a fatal error
        /// </summary>
        /// <param name="sender">The control that sent the event</param>
        /// <param name="e">The event arguments</param>
        // MM/DD/YY who Version Issue# Description
        // -------- --- ------- ------ ------------------------------------------
        // 04/08/13 jrf 3.50.69 458134 Created
        private void HandleFatalError(object sender, ItronErrorEventArgs e)
        {
            //Cancel all tests running on this worker thread.
            CancelTests();

            if (FatalErrorEvent != null)
            {
                if (e != null)
                {
                    e.Message = m_strName + ": " + e.Message;
                }

                FatalErrorEvent(this, e);
            }
        }//HandleFatalError