コード例 #1
0
ファイル: BaseLineChassis.cs プロジェクト: pecen/Reco3
        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);
        }
コード例 #2
0
ファイル: BaseLineChassis.cs プロジェクト: pecen/Reco3
        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);
        }