예제 #1
0
파일: Route.cs 프로젝트: Balonich/Railways
 public Route(Station[] stations)
     : this()
 {
     foreach (Station newStation in stations)
     {
         StationsOnRoute.AddLast(newStation);
     }
 }
예제 #2
0
파일: Route.cs 프로젝트: Balonich/Railways
 public Route(Station firstStation, Station lastStation)
     : this()
 {
     StationsOnRoute.AddFirst(firstStation);
     StationsOnRoute.AddLast(lastStation);
 }