Пример #1
0
        //public bool IsVirtualProduct//是否为虚拟产品(换乘)
        //{
        //    get
        //    {
        //        return StartStation == EndStation;
        //    }
        //}

        public override string ToString()
        {
            return(StartStation + "->" + EndStation + " via " + Train.ToString());
        }
Пример #2
0
 public StopStation(Train t)
 {
     _Train = t;
 }
Пример #3
0
 public override string ToString()
 {
     return("Train:" + Train.ToString() + ",Section:" + StartStation + "->" + EndStation);
 }