public AlarmLevel(LineThresholdType type, string name, float value) { this.type = type; this.name = name; this.value = value; this.Show = true; }
public AlarmLevel(LineThresholdType type, long time, float value) { this.type = type; this.time = time; this.value = value; this.Show = true; }
public void AddThresholdValue(LineThresholdType type, float val, string name) { AlarmLevel level = new AlarmLevel(type, name, val); ClearThresholdValue(type); listLevel.Add(level); MarkMaxMin(); }
public void ShowThresholdLine(LineThresholdType type, bool isShow) { for (int i = 0; i < listLevel.Count; i++) { if (listLevel[i].Type == type) { listLevel[i].Show = isShow; } } }
public bool ClearThresholdValue(LineThresholdType type) { List <AlarmLevel> rmList = new List <AlarmLevel>(); for (int i = 0; i < listLevel.Count; i++) { if (listLevel[i].Type == type) { rmList.Add(listLevel[i]); } } for (int i = 0; i < rmList.Count; i++) { listLevel.Remove(rmList[i]); } return(true); }
public bool RemoveThresholdLine(LineThresholdType type) { return true; }
public bool IsShowThresholdLine(LineThresholdType type) { return true; }
public bool IsExistThresholdLine(LineThresholdType type) { return true; }
public bool ClearThresholdValue(LineThresholdType type) { List<AlarmLevel> rmList=new List<AlarmLevel>(); for (int i = 0; i < listLevel.Count; i++) { if (listLevel[i].Type == type) { rmList.Add(listLevel[i]); } } for (int i = 0; i < rmList.Count; i++) { listLevel.Remove(rmList[i]); } return true; }
public bool RemoveThresholdLine(LineThresholdType type) { return(true); }
public bool IsShowThresholdLine(LineThresholdType type) { return(true); }
public bool IsExistThresholdLine(LineThresholdType type) { return(true); }