Esempio n. 1
0
        private void changeButton_Click(object sender, EventArgs e)
        {
            var newForm = new ShowStudent(_main);

            newForm.Show();
            Hide();
        }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
        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));
        }