private void Load_ProdType_Info(string strTypeId) { DataAccessPOS dbPOS = new DataAccessPOS(); ptypes.Clear(); ptypes = dbPOS.Get_ProductType_By_ID(int.Parse(strTypeId)); if (ptypes.Count == 1) { txt_TypeID.Text = ptypes[0].Id.ToString(); txt_TypeName.Text = ptypes[0].TypeName; check_Liquor.Checked = ptypes[0].IsLiquor; check_Restaurant.Checked = ptypes[0].IsRestaurant; check_Donation.Checked = ptypes[0].IsBatchDonation; check_Discount.Checked = ptypes[0].IsBatchDiscount; } }