コード例 #1
0
        private bool Get_PinPad_Information()
        {
            DataAccessPOS dbPOS = new DataAccessPOS();

            stations.Clear();
            stations = dbPOS.Get_Station_By_Station(p_Station);
            if (stations.Count > 0)
            {
                text_IPADDR.Text = stations[0].IP_Addr;
                text_PortNo.Text = stations[0].IPS_Port.ToString();
                return(Check_PinPad_Connectivity());
            }
            else
            {
                text_IPADDR.Text = "192.168.1.189";
                text_PortNo.Text = "7788";
            }
            return(false);
        }