예제 #1
0
        /// <summary>
        /// 成员变化
        /// </summary>
        /// <param name="member"></param>
        public void MemberListUpdate(MemberChangeBackImf member)
        {
            try
            {
                DeviceBackImf temp = member.ChangeMemberDev;

                if (JtWcfMainHelper.DevPtyChangeEvent != null)
                {
                    JtWcfMainHelper.DevPtyChangeEvent(null, new DevPtyEventArgs(temp, member.OperType));
                }
            }
            catch { }
        }
예제 #2
0
        /// <summary>
        /// 服务端更新设备状态
        /// </summary>
        /// <param name="devObjs"></param>
        public void UpdateDevStatue(GfxList <DeviceBackImf> devObjs)
        {
            try
            {
                if (devObjs == null || devObjs.Count == 0)
                {
                    return;
                }

                if (JtWcfMainHelper.GetNewMsgEvent != null)
                {
                    JtWcfMainHelper.GetNewMsgEvent(null, new DevStatueEventArgs(devObjs));
                }
            }
            catch { }
        }