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