Exemplo n.º 1
0
 /// <summary>
 /// Simulates a train pickup failure
 /// </summary>
 /// <param name="train">Train to simulate on</param>
 /// <param name="failure">True to invoke failure or false to clear it</param>
 public void SimulatePickupFailure(ITrain train, bool failure)
 {
     if (train != null)
     {
         try
         {
             m_log.LogInfoFormat("Setting signal pickup failure of train {0}", failure);
             train.SetSignalPickupFailure(failure);
         }
         catch (Exception)
         {
             m_log.LogError("Error in setting signal pickup failure");
         }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Simulates a train pickup failure
 /// </summary>
 /// <param name="train">Train to simulate on</param>
 /// <param name="failure">True to invoke failure or false to clear it</param>
 public void SimulatePickupFailure(ITrain train, bool failure)
 {
     if (train != null)
     {
         try
         {
             m_log.LogInfoFormat("Setting signal pickup failure of train {0}", failure);
             train.SetSignalPickupFailure(failure);
         }
         catch (Exception)
         {
             m_log.LogError("Error in setting signal pickup failure");
         }
     }
 }
Exemplo n.º 3
0
 private void signalPickupFailureBox_CheckedChanged(object sender, EventArgs e)
 {
     train.SetSignalPickupFailure(signalPickupFailureBox.Checked);
 }