Hardware/Hardware.cs
changeset 298 96263190189a
parent 275 35788ddd1825
child 344 3145aadca3d2
     1.1 --- a/Hardware/Hardware.cs	Sat Jun 04 13:27:11 2011 +0000
     1.2 +++ b/Hardware/Hardware.cs	Sun Jun 19 12:41:18 2011 +0000
     1.3 @@ -113,6 +113,13 @@
     1.4  
     1.5      public abstract void Update();
     1.6  
     1.7 +    public event HardwareEventHandler Closing;
     1.8 +
     1.9 +    public virtual void Close() {
    1.10 +      if (Closing != null)
    1.11 +        Closing(this);
    1.12 +    }
    1.13 +
    1.14      public void Accept(IVisitor visitor) {
    1.15        if (visitor == null)
    1.16          throw new ArgumentNullException("visitor");