Exemple #1
0
        public void Log(AlarmObject alarmObj, AlarmLogType logType)
        {
            switch (logType)
            {
            case AlarmLogType.Occur:
                AlarmLog.Log(alarmObj.Identifier + " " + alarmObj.AlarmCode + " Occurred ");
                break;

            case AlarmLogType.Release:
                AlarmLog.Log(alarmObj.Identifier + " " + alarmObj.AlarmCode + " Released by " + alarmObj.ResetResult);
                break;
            }
        }
Exemple #2
0
        public void Log(AlarmObject alarmObj, AlarmLogType logType)
        {
            switch (logType)
            {
                case AlarmLogType.Occur:
                    AlarmLog.Log(alarmObj.Identifier + " " + alarmObj.AlarmCode + " Occurred ");
                    break;

                case AlarmLogType.Release:
                    AlarmLog.Log(alarmObj.Identifier + " " + alarmObj.AlarmCode + " Released by " + alarmObj.ResetResult);
                    break;
            }
        }