19 lines
437 B
C#
19 lines
437 B
C#
|
|
// using System.Collections.Generic;
|
|||
|
|
|
|||
|
|
// public class AlarmRecordViewModel
|
|||
|
|
// {
|
|||
|
|
// public IReadOnlyList<AlarmEvent> GetRecords(int max)
|
|||
|
|
// {
|
|||
|
|
// // 优先使用DCSAlarmManager获取报警记录
|
|||
|
|
// if (DCSAlarmManager.Instance != null)
|
|||
|
|
// {
|
|||
|
|
// return DCSAlarmManager.Instance.GetAlarmRecords(max);
|
|||
|
|
// }
|
|||
|
|
|
|||
|
|
// // 回退到传统的AlarmService(如果存在)
|
|||
|
|
// return new List<AlarmEvent>().AsReadOnly();
|
|||
|
|
// }
|
|||
|
|
// }
|
|||
|
|
|
|||
|
|
|