public void xep1Ngay(DateTime ngay) { TietHocRendering t = new TietHocRendering(Lop, size); //Tìm ô tiêu đề ngày Cell dateCell = dateToCell[ngay]; Cell cell = dateCell; List <TietHoc> list = tietHocs.Where(x => x.ngay == ngay).ToList(); list.OrderBy(x => x.tiet); if (list.Count == 0) { return; } Ngay_helper helper = new Ngay_helper(); helper.Lop = Lop; helper.xep(ws, dateCell, list, "hocKy", size, map); }
public void xep() { if (tietHocs.Count == 0) { return; } TietHocRendering t = new TietHocRendering(Lop, size); //Tìm ô tiêu đề ngày / Môn học giảng đường Cell cell = ws[r + 4, c + 1]; List <TietHoc> list = tietHocs; list.OrderBy(x => x.tiet); if (list.Count == 0) { return; } Ngay_helper helper = new Ngay_helper(); helper.Lop = Lop; helper.xep(ws, cell, list, "ngay", size, null); }