Exemplo n.º 1
0
        //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);
            }
        }
Exemplo n.º 2
0
 public FireAlarmEventArgs(FireCatEnum AlertLevel)
 {
     Alert = AlertLevel;
 }