/// <summary> /// /// </summary> /// <returns></returns> public static AboutConfig GetInstance() { if (instance == null) { instance = new AboutConfig(); } return(instance); }
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; } }
/// <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); } }
private void GetInfoLogic() { this.state = this.serverService.GetBroadcastMessage(AboutConfig.GetInstance().GetAbout()); }