Exemple #1
0
        private void FillList()
        {
            DepartmentList objList = new DepartmentList();

            objList = DeptManager.GetList("");

            lvwDepts.Items.Clear();

            if (objList != null)
            {
                foreach (Department objDept in objList)
                {
                    ListViewItem objLvwItem = new ListViewItem();
                    objLvwItem.Name = Convert.ToString(objDept.DBID);
                    objLvwItem.Text = Convert.ToString(objDept.DeptName);
                    objLvwItem.SubItems.Add(Convert.ToString(objDept.Description));

                    lvwDepts.Items.Add(objLvwItem);
                }
            }
        }