Example #1
0
 public TrainNumberField(string strID) : base(strID)
 {
     this.m_strDialTrainStation = "";
     this.m_nDialTrainTime      = 0;
     this.m_nElementIndex       = 0;
     this.m_nDialTrainDirection = 0;
     this.m_strTrainNumber      = "";
     this.m_arBlockingList      = new ArrayList();
     this.m_Station             = null;
     this.TrackSource           = -1;
     this.PathElement           = null;
     this.TrainTimeTable        = null;
     this.Init();
 }
Example #2
0
 public TrainNumberField()
 {
     this.m_strDialTrainStation = "";
     this.m_nDialTrainTime = 0;
     this.m_nElementIndex = 0;
     this.m_nDialTrainDirection = 0;
     this.m_strTrainNumber = "";
     this.m_arBlockingList = new ArrayList();
     this.m_Station = null;
     this.TrackSource = -1;
     this.PathElement = null;
     this.TrainTimeTable = null;
     this.Init();
 }
Example #3
0
 public override void InitAfterLoad(Layout l)
 {
     Debug.Assert(base.m_Connections.Count <= 1);
     if (base.m_Connections.Count == 1)
     {
         Element element;
         (base.m_Connections[0] as Connection).GetConnectedElement(this, out element, out this.TrackSource);
         Debug.Assert(this.TrackSource != -1);
         this.PathElement = (TISMonitor.PathElement)element;
         this.PathElement.TrainNumberField = this;
     }
     this.m_Station = base.m_Layout.Stations.GetStationByID(this.m_strDialTrainStation);
     Debug.Assert(this.m_Station != null);
     base.InitAfterLoad(l);
 }
Example #4
0
 public override void InitAfterLoad(Layout l)
 {
     Debug.Assert(base.m_Connections.Count <= 1);
     if (base.m_Connections.Count == 1)
     {
         Element element;
         (base.m_Connections[0] as Connection).GetConnectedElement(this, out element, out this.TrackSource);
         Debug.Assert(this.TrackSource != -1);
         this.PathElement = (TISMonitor.PathElement) element;
         this.PathElement.TrainNumberField = this;
     }
     this.m_Station = base.m_Layout.Stations.GetStationByID(this.m_strDialTrainStation);
     Debug.Assert(this.m_Station != null);
     base.InitAfterLoad(l);
 }