예제 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public static AboutConfig GetInstance()
 {
     if (instance == null)
     {
         instance = new AboutConfig();
     }
     return(instance);
 }
예제 #2
0
파일: CommLister.cs 프로젝트: radtek/EUG
        private void ServerSateListenLogic()
        {
            this.state = this.serverService.ServiceShakeHand(AboutConfig.GetInstance().GetAbout(), GetDevicesStatus());

            if (this.state == null || this.state.Success == false)
            {
                CemmberData.Instance.IsServerConnectFail = true;
            }
            else
            {
                CemmberData.Instance.IsServerConnectFail = false;
            }
        }
예제 #3
0
        /// <summary>
        /// 是否是注册会员
        /// </summary>
        /// <returns></returns>
        public bool IsRegister()
        {
            try
            {
                ServerCallback dic = this.service.CourierLogin(this, AboutConfig.GetInstance().GetAbout());
                if (dic.Success)
                {
                    this.companyName = dic.CompanyName;
                    return(true);
                }

                return(false);
            }
            catch (Exception e)
            {
                CLog4net.LogError(e);
                return(false);
            }
        }
예제 #4
0
 private void GetInfoLogic()
 {
     this.state = this.serverService.GetBroadcastMessage(AboutConfig.GetInstance().GetAbout());
 }