예제 #1
0
 public string GetSeated()
 {
     if (Seated == DateTime.MaxValue)
     {
         return(string.Empty);
     }
     else
     {
         return(Seated.ToString());
     }
 }
예제 #2
0
 public void CarArrived(object sender, EventArgs e)
 {
     if (sender is Car taxi && !destinationPoint.IsEmpty)
     {
         if (inTaxi)
         {
             inTaxi           = false;
             destinationPoint = PointLatLng.Empty;
         }
         else
         {
             inTaxi = true;
             Seated?.Invoke(this, null);
             taxi.moveTo(destinationPoint);
         }
     }
     //сесть в машину
 }