private void Load_Promotion_Info(string strPromoId) { DataAccessPOS dbPOS = new DataAccessPOS(); ppromos.Clear(); ppromos = dbPOS.Get_Promotion_By_ID(int.Parse(strPromoId)); if (ppromos.Count == 1) { txt_PromoID.Text = ppromos[0].Id.ToString(); txt_PromoName.Text = ppromos[0].PromoName; cb_PromoType.SelectedIndex = cb_PromoType.FindStringExact(dbPOS.Get_PromoTypelkupName_By_Id(ppromos[0].PromoType)); txt_PromoValue.Text = ppromos[0].PromoValue.ToString(); txt_PromoQTY.Text = ppromos[0].PromoQTY.ToString(); dttm_PromoStart.Text = ppromos[0].PromoStartDttm.ToString(); dttm_PromoEnd.Text = ppromos[0].PromoEndDttm.ToString(); } }