//Set methof to run this event and pass in the type of fire alarm via the data bucket public void OnFireEvent(FireCatEnum AlertLevel) { //instantiate firealarmeventargs object and pass in via the event. FireAlarmEventArgs fe = new FireAlarmEventArgs(AlertLevel); if(fireEvent != null) { fireEvent(this,fe); } }
public FireAlarmEventArgs(FireCatEnum AlertLevel) { Alert = AlertLevel; }