/// <summary> /// Make the selected student as current student /// </summary> /// <param name="sender">The object that raised the event</param> /// <param name="e">The event arguments</param> /// <history> /// <Created 3 May 2014>Arun Gopinath</Created> /// <Modified 3 May 2014></Modified> /// </history> public void ShowSelectedStudentDetail(Student student) { currentStudent = student; lblNumLogins.Text = currentStudent.LoginRecords.Count.ToString(); lblLastLogin.Text = currentStudent.LastLogin().Date.ToString(); lblReportDate.Text = DateTime.Now.ToString("d"); studentBindingSource.DataSource = currentStudent; assignmentBindingSource.DataSource = currentStudent.Assignments; studentBindingSource.ResetBindings(false); assignmentBindingSource.ResetBindings(false); //ShowDialog (); }