Exemple #1
0
        //public void testDeviceID()
        //{
        //    List<Route> CurTrainIn = MainWindow.routeList_.routes_.FindAll((Route route) =>
        //    {
        //        foreach (var sec in route.InSections)
        //        {
        //            if (sec.ID == 2)
        //            {
        //                return true;
        //            }
        //        }
        //        return false;
        //    });
        //}

        public void testPSD()
        {
            Section section = MainWindow.stationElements_.Elements.Find((GraphicElement element) =>
            {
                if (element is Section)
                {
                    if ((element as Section).Name == "T0107")
                    {
                        return(true);
                    }
                }
                return(false);
            }) as Section;

            PSDoor psdoor = section.RelayPSDoor;
        }
Exemple #2
0
 public bool GetIsEB()
 {
     if (this.LogicCount == 2)
     {
         return(false);
     }
     else
     {
         PSDoor psdoor = Load.FindDoor.FindRelayPSDoor(this);
         if (psdoor != null)
         {
             return(psdoor.IsEB);
         }
         else
         {
             return(false);
         }
     }
 }