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