示例#1
0
 public AlarmLevel(LineThresholdType type, string name, float value)
 {
     this.type = type;
     this.name = name;
     this.value = value;
     this.Show = true;
 }
示例#2
0
 public AlarmLevel(LineThresholdType type, string name, float value)
 {
     this.type  = type;
     this.name  = name;
     this.value = value;
     this.Show  = true;
 }
示例#3
0
 public AlarmLevel(LineThresholdType type, long time, float value)
 {
     this.type = type;
     this.time = time;
     this.value = value;
     this.Show = true;
 }
示例#4
0
 public AlarmLevel(LineThresholdType type, long time, float value)
 {
     this.type  = type;
     this.time  = time;
     this.value = value;
     this.Show  = true;
 }
示例#5
0
        public void AddThresholdValue(LineThresholdType type, float val, string name)
        {
            AlarmLevel level = new AlarmLevel(type, name, val);

            ClearThresholdValue(type);
            listLevel.Add(level);
            MarkMaxMin();
        }
示例#6
0
 public void ShowThresholdLine(LineThresholdType type, bool isShow)
 {
     for (int i = 0; i < listLevel.Count; i++)
     {
         if (listLevel[i].Type == type)
         {
             listLevel[i].Show = isShow;
         }
     }
 }
示例#7
0
        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);
        }
示例#8
0
 public void ShowThresholdLine(LineThresholdType type, bool isShow)
 {
     for (int i = 0; i < listLevel.Count; i++)
     {
         if (listLevel[i].Type == type)
         {
             listLevel[i].Show = isShow;
         }
     }
 }
示例#9
0
 public bool RemoveThresholdLine(LineThresholdType type)
 {
     return true;
 }
示例#10
0
 public bool IsShowThresholdLine(LineThresholdType type)
 {
     return true;
 }
示例#11
0
 public bool IsExistThresholdLine(LineThresholdType type)
 {
     return true;
 }
示例#12
0
 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;
 }
示例#13
0
 public void AddThresholdValue(LineThresholdType type, float val, string name)
 {
     AlarmLevel level = new AlarmLevel(type, name, val);
     ClearThresholdValue(type);
     listLevel.Add(level);
     MarkMaxMin();
 }
示例#14
0
 public bool RemoveThresholdLine(LineThresholdType type)
 {
     return(true);
 }
示例#15
0
 public bool IsShowThresholdLine(LineThresholdType type)
 {
     return(true);
 }
示例#16
0
 public bool IsExistThresholdLine(LineThresholdType type)
 {
     return(true);
 }