private void citation_Click(object sender, EventArgs e) { foreach (ByFaculty thisFac in research.byFaculty) { if (facName == thisFac.username) { ResearchForm fR = new ResearchForm(thisFac); fR.Show(); } } }
private void LabR_Click(object sender, EventArgs e) { Label myButton = sender as Label; String buffer = myButton.Text; foreach (ByInterestArea me in research.byInterestArea) { if (me.areaName == buffer) { ResearchForm fR = new ResearchForm(me); fR.Show(); } } }