Esempio n. 1
0
        void _IB状态_清除了告警(M上报清除 __清除)
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new Action <M上报清除>(_IB状态_清除了告警), __清除);
                return;
            }

            if (_告警缓存.ContainsKey(__清除.标识))
            {
                this.out告警列表.Rows.RemoveAt(_告警缓存[__清除.标识]);
            }
        }
Esempio n. 2
0
        void _IB告警_清除了告警(M上报清除 obj)
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new Action <M上报清除>(_IB告警_清除了告警), obj);
                return;
            }

            var __缓存 = new List <ListViewItem>(this.out未清除告警.Items.Cast <ListViewItem>());

            foreach (var __行 in __缓存)
            {
                var __绑定 = __行.Tag as M上报告警;
                if (__绑定 != null && __绑定.标识 == obj.标识 && __绑定.来源设备标识 == obj.来源设备标识 && __绑定.来源设备类型 == obj.来源设备类型)
                {
                    this.out未清除告警.Items.Remove(__行);
                    break;
                }
            }
        }