コード例 #1
0
ファイル: AlarmSubject.cs プロジェクト: hornoo/IN710hornerb1
        //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);
            }
        }
コード例 #2
0
 public FireAlarmEventArgs(FireCatEnum AlertLevel)
 {
     Alert = AlertLevel;
 }