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