public void OnFireEvent(EFireCategory fireCategory) { FireAlarmEvent fe = new FireAlarmEvent(fireCategory); if (DFireEvent != null) DFireEvent(this, fe); }
public void OnFireEvent(EFireCategory fireCategory) { FireAlarmEvent fe = new FireAlarmEvent(fireCategory); if (DFireEvent != null) { DFireEvent(this, fe); } }
public override void FireAlarm(object fireObject, FireAlarmEvent fe) { switch (fe.FireCategory) { case EFireCategory.Minor: Beep(800, 1000); break; case EFireCategory.Serious: Beep(1200, 1000); break; case EFireCategory.Inferno: Beep(1800, 1000); break; default: break; } }
public override void FireAlarm(object fireObject, FireAlarmEvent fe) { String message = "Fire is " + fe.FireCategory.ToString() + ". "; switch (fe.FireCategory) { case EFireCategory.Minor: message += "Use a fire extinguisher."; break; case EFireCategory.Serious: message += "Yup that's a fire."; break; case EFireCategory.Inferno: message += "Run!!."; break; default: break; } MessageBox.Show(message); }
public override void FireAlarm(object fireObject, FireAlarmEvent fe) { switch (fe.FireCategory) { case EFireCategory.Minor: Beep(800, 1000); break; case EFireCategory.Serious: Beep(1200, 1000); break; case EFireCategory.Inferno: Beep(1800, 1000); break; default: break; } }
public override void FireAlarm(object fireObject, FireAlarmEvent fe) { String message = "Fire is " + fe.FireCategory.ToString() + ". "; switch (fe.FireCategory) { case EFireCategory.Minor: message += "Use a fire extinguisher."; break; case EFireCategory.Serious: message += "Yup that's a fire."; break; case EFireCategory.Inferno: message += "Run!!."; break; default: break; } MessageBox.Show(message); }
public abstract void FireAlarm(object fireObject, FireAlarmEvent fe);
public abstract void FireAlarm(object fireObject, FireAlarmEvent fe);