private void HideStationsAndConnectionsThatIsNotOnTheSelectedPath() { StationConnections.Where(sc => sc.IsSelectedConnection == null) .ToList().ForEach(sc => { sc.IsSelectedConnection = false; }); Stations.Where(s => s.IsSelectedStationInThePath == null) .ToList().ForEach(s => { s.IsSelectedStationInThePath = false; }); }
private void ResetSelectedStationsAndStationConnections() { Stations.Where(s => s.IsSelectedStationInThePath == false | true) .ToList().ForEach(s => { s.IsSelectedStationInThePath = null; }); StationConnections.Where(sc => sc.IsSelectedConnection == false | true) .ToList().ForEach(sc => { sc.IsSelectedConnection = null; }); }