예제 #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);
 }