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

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

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