/// <summary>
 /// 检查终端设置是否正确
 /// </summary>
 /// <returns></returns>
 private bool CheckClientConfig()
 {
     if (EventInitializeMessage != null)
     {
         EventInitializeMessage("初始化终端设置……");
     }
     try
     {
         LeaveClientObject clientObject = LeaveClientObject.GetInstance();
         if (clientObject.BackgroundImagesResource.Count == 0)
         {
             if (EventInitializeMessage != null)
             {
                 EventInitializeMessage("背景图片初始化失败, 请检查该终端的设置或者查阅错误日志以排除故障。系统将继续尝试,直到获取到正确的配置。");
             }
             return(false);
         }
         else
         {
             return(true);
         }
     }
     catch (Exception ex)
     {
         if (EventInitializeMessage != null)
         {
             // EventInitializeMessage("初始化遇到错误,等待重试……");
         }
         return(false);
     }
 }
        /// <summary>
        /// 检查读卡器接口对象
        /// </summary>
        /// <returns></returns>
        private bool CheckCardReader()
        {
            if (EventInitializeMessage != null)
            {
                EventInitializeMessage("初始化读卡器……");
            }
            LeaveClientObject clientObject = LeaveClientObject.GetInstance();

            try
            {
                if (clientObject.ObjCardReader != null)
                {
                    clientObject.ObjCardReader.Start();
                    clientObject.ObjCardReader.Stop();
                }
                return(true);
            }
            catch (Exception ex)
            {
                if (EventInitializeMessage != null)
                {
                    // SeatManage.SeatManageComm.WriteLog.Write("读卡器初始化失败:"+ex.Message);
                    EventInitializeMessage("读卡器初始化失败:" + ex.Message);
                }
                return(false);
            }
        }