private void listView1_DoubleClick(object sender, EventArgs e) { foreach (AttendanceReport attendanceReport in General.GetAttendaceSummaryReports(databasePath)) { if (General.GetProfileByID(attendanceReport.ID, databasePath).name == listView1.SelectedItems[0].Text) { StudentInfoForm studentInfoForm = new StudentInfoForm(databasePath, attendanceReport); studentInfoForm.Show(); return; } } }