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; } }