public void OnUserClosesDoor() { Console.WriteLine("[Door closes]"); DoorClosedEvent?.Invoke(this, new DoorClosedEventArgs()); }
public void CloseDoor() { Open = false; DoorClosedEvent?.Invoke(this, EventArgs.Empty); }
public void OnDoorClose() { DoorClosedEvent?.Invoke(this, null); }
public void CloseDoor() { DoorClosedEvent?.Invoke(this, new EventArgs()); }
protected virtual void RaiseDoorClosedEvent() { DoorClosedEvent?.Invoke(this, EventArgs.Empty); }
public virtual void OnDoorClose() { DoorClosedEvent?.Invoke(this, new DoorClosedEventArgs()); }