protected virtual void OnTriggerStatusChanged(TriggerChangedEventArg e) { EventHandler <TriggerChangedEventArg> Handler = TriggerStatusChanged; if (Handler != null) { Handler(this, e); } }
public void UpdateTriggerStatus() { bool OldStatus = Status; if (OldStatus != Status) { //Trigger status changed event firing TriggerChangedEventArg Args = new TriggerChangedEventArg(); Args.Status = Status; OnTriggerStatusChanged(Args); } }