Beispiel #1
0
 public RouteStation StationExistsByName(ServiceStation station)
 {
     foreach (RouteStation routeStation in Stations)
     {
         if (routeStation.Name == station.Name)
         {
             return(routeStation);
         }
     }
     return(null);
 }
Beispiel #2
0
        public override bool Equals(object obj)
        {
            ServiceStation station = obj as ServiceStation;

            if (station == null)
            {
                return(false);
            }

            return(station.Id == m_id);
        }