private void changeButton_Click(object sender, EventArgs e) { var newForm = new ShowStudent(_main); newForm.Show(); Hide(); }
public void ComputeAttendance() { foreach (Transform child in this.gameObject.transform) { ShowStudent childStudent = child.gameObject.GetComponent <ShowStudent>(); childStudent.ComputeAttendance(); foreach (Attendance a in childStudent.student.attendance) { Debug.Log(a.date + " " + a.showedUp); } } ClearEntry(); }
public async Task <IActionResult> ShowStudent() { List <ShowStudent> stuCourses = new List <ShowStudent>(); var userid = _userManager.GetUserId(User); var cs = from ucs in _context.CourseUsers where ucs.LMSUserId == userid select ucs; var lstcourse = await cs.ToListAsync(); foreach (var item in cs) { var courseStu = new ShowStudent(); var thecourse = await _repository.GetCourseByIdAsync(item.CourseId, false); courseStu.CourseID = item.CourseId; courseStu.CourseName = thecourse.Name; courseStu.StudentID = User.Identity.Name; stuCourses.Add(courseStu); } return(View(stuCourses)); }