Пример #1
0
        private void SendMsg2ET(IList <SensorGroup> gp)
        {
            try
            {
                if (gp.Count() > 1)
                {
                    // TODO

                    WebClientService.SendToET(ConfigChangedMsgHelper.GetSensorGroupMessage());
                }
            }
            catch (Exception ex)
            {
                log.ErrorFormat("SendMsg2ET error {0}", ex);
            }
        }
Пример #2
0
        private void SendMsg2ET(IList <SensorGroup> newgp, IList <SensorGroup> oldgp)
        {
            try
            {
                if (newgp.Count() > 1 || oldgp.Count() > 1)
                {
                    if (newgp.Count() != oldgp.Count() || !IsEqual(newgp, oldgp))
                    {
                        // TODO

                        WebClientService.SendToET(ConfigChangedMsgHelper.GetSensorGroupMessage());
                    }
                }
            }
            catch (Exception ex)
            {
                log.ErrorFormat("SendMsg2ET error {0}", ex);
            }
        }