/// <summary> /// ��� /// </summary> /// <param name="value"></param> public void Add(AlarmInfo value) { //����ȥid value.ID = id; id += 1; num = List.Add(value); if(num>=MAX_VALUE) //�����100 0---99,,0 100, 1 101 ,2 102 { Delete(0); } }
/// <summary> /// ɾ�� /// </summary> /// <param name="value"></param> public void Delete(AlarmInfo value) { List.Remove(value); }