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