Esempio n. 1
0
 public void ConnectStation(IStation station, bool isViceVersa)
 {
     ConnectedStations.Add(station);
     if (isViceVersa == true)
     {
         station.ConnectStation(this, false);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Соединяет указанные станции разных ветвей
 /// </summary>
 /// <param name="firstStation"></param>
 /// <param name="secondStation"></param>
 static public void ConnectBranches(IStation firstStation, IStation secondStation)
 {
     firstStation.ConnectStation(secondStation, true);
 }