private void Load_Station_Info(string strHostName) { DataAccessPOS dbPOS = new DataAccessPOS(); stations.Clear(); stations = dbPOS.Get_Station_By_HostName(strHostName); if (stations.Count == 1) { txt_HostName.Text = stations[0].ComputerName; txt_Station.Text = stations[0].Station; txt_StationName.Text = stations[0].StationName; txt_IPAddr.Text = stations[0].IP_Addr; txt_IPS_Port.Text = stations[0].IPS_Port.ToString(); if (stations[0].Enabled) { check_IsActive.Checked = true; } else { check_IsActive.Checked = false; } } }