public bool OpenGate(string IP, int Port, int[] gateNumber)
        {
            bool flag = true;

            try
            {
                flag = flag && LNK_BARRIER_ISDK_X86.Connect(IP);
                foreach (int num in gateNumber)
                {
                    flag = flag && LNK_BARRIER_ISDK_X86.SendCommand(IP, num);
                }
            }
            catch (Exception exception)
            {
                LogHelper.Log.Error(exception.Message);
            }
            return(flag);
        }
        public bool Initialize(string IP, int Port, string userName = "", string Pwd = "")
        {
            bool flag = true;

            if (!this.ControlPanels.Contains(IP))
            {
                flag = (flag && LNK_BARRIER_ISDK_X86.Initialize(IP, 0x1388, userName, Pwd)) && LNK_BARRIER_ISDK_X86.Connect(IP);
                this.ControlPanels.Add(IP);
            }
            return(flag);
        }