Ejemplo n.º 1
0
 public bool ApplyRent(Rent rent)
 {
     if (isValid(rent))
     {
         apply(rent);
         Rented?.Invoke(this, getRentedMessage());
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 2
0
 protected virtual void OnRented(EventArgs e)
 {
     Rented?.Invoke(this, e);
 }