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

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

            return(station.Id == m_id);
        }