private void InitTheLoai()
        {
            List <TheLoai> theloaiGroup = TheLoaiDAO.LoadTheLoai();

            foreach (TheLoai item in theloaiGroup)
            {
                cmbTheLoai.Items.Add(item.TenTheLoai);
            }
        }
        public void InitTheLoai()
        {
            dataGVTheLoai.Rows.Clear();
            List <TheLoai> list = TheLoaiDAO.LoadTheLoai();

            foreach (TheLoai item in list)
            {
                dataGVTheLoai.Rows.Add(item.ItemArray());
            }
            dataGVTheLoai.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
        }
        public static Array LoadTheLoai()
        {
            var theloais = TheLoaiDAO.LoadTheLoai();

            return(theloais);
        }
Example #4
0
        public List <TheLoaiDTO> LoadTheLoai()
        {
            TheLoaiDAO tl = new TheLoaiDAO();

            return(tl.LoadTheLoai());
        }