private void rsrchFacultyClick(object sender, EventArgs e) { Button b = sender as Button; if (b == null) // just to be on the safe side { return; } string x = (string)b.Tag; ResearchCitations rc = new ResearchCitations(x, "Faculty"); rc.ShowDialog(); }
private void rsrchIntrstClick(object sender, EventArgs e) { Button b = sender as Button; if (b == null) // just to be on the safe side { return; } ResearchCitations rc = new ResearchCitations(b.Text, "Area"); rc.ShowDialog(); }