//节点布撤防 private void obj_WatchEvent(object sender, WatchEvnetArgs e) { if (null != ObjWatchEvent) { ObjWatchEvent(sender, e); } }
/// <summary> /// 设置布防/撤防 /// </summary> /// <param name="IsWatch">状态:true - 布防,false - 撤防</param> public void Watch(bool IsWatch) { //linwei 2008-07-11 在地图节点布撤防时,判断一下当前节点的Node是否为空 if (Node != null) { //renzihao 2008-5-27 把改变图片提前 Statue = (IsWatch) ? WatchStatue.Normal : WatchStatue.Stopped; //renzihao 2005-5-28 树节点改变报警状态 ((Data.NodeInformation) Node.Tag).Watch = Statue; if (Statue == WatchStatue.Warning && null != ClearWarningEvent) { EventArgs args = new EventArgs(); ClearWarningEvent(this, args); } if (null != WatchEvent) { WatchEvnetArgs args = new WatchEvnetArgs(); args.IsWatch = IsWatch; WatchEvent(this, args); } Statue = (IsWatch) ? WatchStatue.Normal : WatchStatue.Stopped; } }