public void Sort() { if (DevTypeAlarms != null) { DevTypeAlarms.Sort(); } }
public AlarmGroupCount AddTypeCount(string type, int count) { if (DevTypeAlarms == null) { DevTypeAlarms = new List <AlarmGroupCount>(); } AlarmGroupCount typeGroupCount = new AlarmGroupCount(type, count); DevTypeAlarms.Add(typeGroupCount); return(typeGroupCount); }