private void lvInterestR_Click(object sender, EventArgs e) { ListView lv = (ListView)sender; string areaName = lv.SelectedItems[0].Text; ByInterestArea interest = research.byInterestArea.Find(x => x.areaName.Contains(areaName)); ResearchForm researchForm = new ResearchForm(areaName, interest.citations); researchForm.ShowDialog(); }
private void lvFacultyR_Click(object sender, EventArgs e) { ListView lv = (ListView)sender; string facName = lv.SelectedItems[0].Text; ByFaculty fac = research.byFaculty.Find(x => x.facultyName.Contains(facName)); ResearchForm researchForm = new ResearchForm(facName, fac.citations); researchForm.ShowDialog(); }