Esempio n. 1
0
        private void onGlobalInfoUpdate(IEnumerable <string> keysUpdated)
        {
            CCTVGlobalInfo gi = ClientHub.GetGlobalInfo();

            if (gi != null)
            {
                if (CCTV1Info == null || CCTV1Info.ServerHost != gi.CCTV1Host)
                {
                    if (CCTV1Info != null)
                    {
                        CCTV1Info.Stop();
                    }
                    CCTV1Info = new CCTVInfo(gi.CCTV1Host);
                    CCTV1Info.Start();
                    if (_control != null)
                    {
                        _control.CCTV1Info = this.CCTV1Info;
                    }
                }
            }
        }
Esempio n. 2
0
 public CCTVGlobalInfo GetGlobalInfo()
 {
     return(ClientHub.GetGlobalInfo());
 }