public void OnfirmEvent(EFires e) { EventArgFires eventArg = new EventArgFires(e); if (fireEvent != null) { fireEvent(this, eventArg); } }
public override void Alarm(object o, EventArgFires e) { switch(e.E) { case EFires.Minor: Beep(800, 1000); break; case EFires.Serious: Beep(1500, 1000); break; case EFires.Inferno: Beep(2200, 1000); break; } }
public override void Alarm(object o, EventArgFires e) { switch (e.E) { case EFires.Minor: Beep(800, 1000); break; case EFires.Serious: Beep(1500, 1000); break; case EFires.Inferno: Beep(2200, 1000); break; } }
public override void Alarm(object o, EventArgFires e) { MessageBox.Show(e.Message, "Instruction", MessageBoxButtons.OK, MessageBoxIcon.Information); }
public abstract void Alarm(object o, EventArgFires e);
public void OnfirmEvent(EFires e) { EventArgFires eventArg = new EventArgFires(e); if (fireEvent != null) fireEvent(this, eventArg); }