예제 #1
0
 public void AddTrip(Trip trip)
 {
     if (TripBelongs(trip))
     {
         Trips.Add(trip);
     }
 }
예제 #2
0
 public static string AllInfo(Trip trip)
 {
     return String.Format("{{Order: {0}, Truck: {1}, Date: {2}, FuelAmount: {3}}}", trip.Application.ToString(false), trip.Bus.ToString(false), trip.Dates.ToString(true), trip.FuelAmount);
 }
예제 #3
0
 //check
 private bool TripBelongs(Trip trip)
 {
     return (trip.Dates >= WeekFrom && trip.Dates <= WeekTo);
 }