示例#1
0
        private void LoadLotteryOutlet()
        {
            txtOutletCodeDesc.Text = "";
            UpdateLotteryOutletDescLenLbl();
            lvLotteryOutlets.Items.Clear();
            lvLotteryOutlets.BeginUpdate();
            List <LotteryOutlet> lotteryOutletList = lotteryDataServices.GetLotteryOutlets();

            foreach (LotteryOutlet outlet in lotteryOutletList)
            {
                ListViewItem item = new ListViewItem(outlet.GetDescription());
                item.Tag = outlet;
                lvLotteryOutlets.Items.Add(item);
            }
            lvLotteryOutlets.EndUpdate();
        }