Exemple #1
0
        private void FillCompanyList()
        {
            OCompanyGet companyGet = new OCompanyGet();

            companyGet.Execute();
            _companyList = companyGet.CompanyList.OrderBy(x => x.CompanyName).ToList();

            lvwCompany.Items.Clear();
            WriteToList(_companyList);
            lvwCompany.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);
        }
Exemple #2
0
        private void GetCompanyList()
        {
            OCompanyGet companyGet = new OCompanyGet();

            companyGet.Execute();
            List <Company> list = companyGet.CompanyList.OrderBy(a => a.CompanyName).ToList();

            companyList = new List <Advertisement>();
            foreach (Company item in list)
            {
                Advertisement obj = new Advertisement()
                {
                    CompanyId = item.CompanyId, CompanyName = item.CompanyName
                };
                companyList.Add(obj);
            }
        }