public void populateData() { List <Consecutive> consecutivesArray = consecutiveService.getAllConsecutives(); dataGridViewSessions.Rows.Clear(); foreach (Consecutive consecutive in consecutivesArray) { dataGridViewSessions.Rows.Add(consecutive.Id, consecutive.Con1_id, consecutive.Con2_id); } }
public void populateData() { List <Consecutive> session1 = consecutiveService.getAllConsecutives(); dataGridViewSessions.Rows.Clear(); foreach (Consecutive sessionCon in session1) { dataGridViewSessions.Rows.Add(sessionCon.Id, sessionCon.Con1_id, sessionCon.Con2_id); } List <SessionDTO> sessionsArray = sessionService.getAllSessions(); dataGridViewSessionRoom.Rows.Clear(); foreach (SessionDTO session in sessionsArray) { dataGridViewSessionRoom.Rows.Add(session.Id, session.Lec1_name, session.Lec2_name, session.Subject_code, session.Subject_name, session.Group_code, session.Tag, session.Room); } }