public void OnFire(EFireSeriousness fireSeriousness) { FireAlarmEventArgs fireEventArgs = new FireAlarmEventArgs(fireSeriousness); if (FireEvent != null) FireEvent(this, fireEventArgs); }
// Constructor public FireAlarmEventArgs(EFireSeriousness fireSeriousness) { this.fireSeriousness = fireSeriousness; }