示例#1
0
 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;
         }
     }
 }
 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;
         }
     }
 }