public virtual bool TriggerEvent(BaseLineChassisEventArgs.BLCEventType EventType, object objParam, string strStatus) { BaseLineChassisEventArgs args = new BaseLineChassisEventArgs(EventType, objParam, strStatus); StatusEvent?.Invoke(this, args); if (args.Cancel == true) { throw new Exception("Cancel is issued, forcing a shutdown!"); } return(args.Cancel); }
public virtual bool TriggerEvent(BaseLineChassisEventArgs.BLCEventType EventType, string strVIN, string strCause) { BaseLineChassisEventArgs args = new BaseLineChassisEventArgs(EventType, null, ""); args._strVIN = strVIN; args._strFailureCause = strCause; StatusEvent?.Invoke(this, args); if (args.Cancel == true) { throw new Exception("Cancel is issued, forcing a shutdown!"); } return(args.Cancel); }