Esempio n. 1
0
        private void PopulateIndustries()
        {
            var bizM = new bizMessage();

            var biz  = new bizIndustry();
            var inds = biz.ListIndustriesByKeyword(txtFindIndustry.Text);

            lstIndustry.Items.Clear();
            if (txtFindIndustry.Text != "")
            {
                foreach (var ind in inds)
                {
                    lstIndustry.Items.Add(new ListItem(ind.IndustryName + " (" + ind.AnzsicCode + ")", ind.AnzsicCode));
                }
                lstIndustry.Visible     = true;
                divIndustry.Visible     = true;
                lblFoundIndustries.Text = lstIndustry.Items.Count + " industries found";
            }
            else
            {
                lstIndustry.Visible     = false;
                divIndustry.Visible     = false;
                lblFoundIndustries.Text = "";
            }
        }
Esempio n. 2
0
        private void PopulateIndustries()
        {
            bizMessage bizM = new bizMessage();

            bizIndustry           biz  = new bizIndustry();
            IQueryable <Industry> inds = biz.ListIndustriesByKeyword(this.txtFindIndustry.Text);

            this.ucMessanger1.ProcessMessages(biz.MSGS, true);

            this.lstIndustry.Items.Clear();
            if (this.txtFindIndustry.Text != "")
            {
                foreach (Industry ind in inds)
                {
                    this.lstIndustry.Items.Add(new ListItem(ind.IndustryName + " (" + ind.AnzsicCode + ")", ind.AnzsicCode));
                }
                this.lstIndustry.Visible     = true;
                this.lblFoundIndustries.Text = this.lstIndustry.Items.Count.ToString() + " industries found";
            }
            else
            {
                this.lstIndustry.Visible     = false;
                this.lblFoundIndustries.Text = "";
            }
        }