//show 2nd form with details based on the click of faculty research areas private void pic_rec_fac1_Click(object sender, EventArgs e) { researchForm rech = new researchForm(); PictureBox rf = (PictureBox)sender; if (rf.Name == "pic_rec_fac1") { rech.rchdomain = research.byFaculty[19].facultyName; rech.rchcitations = research.byFaculty[19].citations; } else if (rf.Name == "pic_rec_fac2") { rech.rchdomain = research.byFaculty[6].facultyName; rech.rchcitations = research.byFaculty[6].citations; } else if (rf.Name == "pic_rec_fac3") { rech.rchdomain = research.byFaculty[18].facultyName; rech.rchcitations = research.byFaculty[18].citations; } else if (rf.Name == "pic_rec_fac4") { rech.rchdomain = research.byFaculty[12].facultyName; rech.rchcitations = research.byFaculty[12].citations; } /* else if (rf.Name == "pic_rec_fac5") * { * API doesnt have the Prifessor details * rech.rchdomain = research.byFaculty[Erik golen].facultyName; * rech.rchcitations = research.byFaculty[Erik golen].citations; * } */ else if (rf.Name == "pic_rec_fac6") { rech.rchdomain = research.byFaculty[13].facultyName; rech.rchcitations = research.byFaculty[13].citations; } else if (rf.Name == "pic_rec_fac7") { rech.rchdomain = research.byFaculty[7].facultyName; rech.rchcitations = research.byFaculty[7].citations; } else if (rf.Name == "pic_rec_fac8") { rech.rchdomain = research.byFaculty[14].facultyName; rech.rchcitations = research.byFaculty[14].citations; } else if (rf.Name == "pic_rec_fac9") { rech.rchdomain = research.byFaculty[11].facultyName; rech.rchcitations = research.byFaculty[11].citations; } else if (rf.Name == "pic_rec_fac10") { rech.rchdomain = research.byFaculty[17].facultyName; rech.rchcitations = research.byFaculty[17].citations; } else if (rf.Name == "pic_rec_fac11") { rech.rchdomain = research.byFaculty[20].facultyName; rech.rchcitations = research.byFaculty[20].citations; } else if (rf.Name == "pic_rec_fac12") { rech.rchdomain = research.byFaculty[15].facultyName; rech.rchcitations = research.byFaculty[15].citations; } /* else if (rf.Name == "pic_rec_fac13") * { * API doesnt have the details of this professor * rech.rchdomain = research.byFaculty[Leone Jim].facultyName; * rech.rchcitations = research.byFaculty[Leone Jim].citations; * } */ else if (rf.Name == "pic_rec_fac14") { rech.rchdomain = research.byFaculty[8].facultyName; rech.rchcitations = research.byFaculty[8].citations; } else if (rf.Name == "pic_rec_fac15") { rech.rchdomain = research.byFaculty[9].facultyName; rech.rchcitations = research.byFaculty[9].citations; } else if (rf.Name == "pic_rec_fac16") { rech.rchdomain = research.byFaculty[10].facultyName; rech.rchcitations = research.byFaculty[10].citations; } else if (rf.Name == "pic_rec_fac17") { rech.rchdomain = research.byFaculty[1].facultyName; rech.rchcitations = research.byFaculty[1].citations; } else if (rf.Name == "pic_rec_fac18") { rech.rchdomain = research.byFaculty[16].facultyName; rech.rchcitations = research.byFaculty[16].citations; } else if (rf.Name == "pic_rec_fac19") { rech.rchdomain = research.byFaculty[2].facultyName; rech.rchcitations = research.byFaculty[2].citations; } else if (rf.Name == "pic_rec_fac20") { rech.rchdomain = research.byFaculty[3].facultyName; rech.rchcitations = research.byFaculty[3].citations; } else if (rf.Name == "pic_rec_fac21") { rech.rchdomain = research.byFaculty[4].facultyName; rech.rchcitations = research.byFaculty[4].citations; } rech.Show(); }
//show 2nd form with details based on the click of research areas private void lbl_rec_analytics_Click(object sender, EventArgs e) { //Fac_Stf_Form info = new Fac_Stf_Form(); //Label fs = (Label)sender; researchForm rech = new researchForm(); Label rd = (Label)sender; if (rd.Name == "lbl_rec_analytics") { rech.rchtitle = "Research By Domain Area:"; rech.rchdomain = research.byInterestArea[4].areaName; rech.rchcitations = research.byInterestArea[4].citations; } else if (rd.Name == "lbl_rec_database") { rech.rchtitle = "Research By Domain Area:"; rech.rchdomain = research.byInterestArea[3].areaName; rech.rchcitations = research.byInterestArea[3].citations; } else if (rd.Name == "lbl_rec_education") { rech.rchtitle = "Research By Domain Area:"; rech.rchdomain = research.byInterestArea[1].areaName; rech.rchcitations = research.byInterestArea[1].citations; } else if (rd.Name == "lbl_rec_geo") { rech.rchtitle = "Research By Domain Area:"; rech.rchdomain = research.byInterestArea[2].areaName; rech.rchcitations = research.byInterestArea[2].citations; } else if (rd.Name == "lbl_rec_hci") { rech.rchtitle = "Research By Domain Area:"; rech.rchdomain = research.byInterestArea[0].areaName; rech.rchcitations = research.byInterestArea[0].citations; } else if (rd.Name == "lbl_rec_hi") { rech.rchtitle = "Research By Domain Area:"; rech.rchdomain = research.byInterestArea[8].areaName; rech.rchcitations = research.byInterestArea[8].citations; } else if (rd.Name == "lbl_rec_mobile") { rech.rchtitle = "Research By Domain Area:"; rech.rchdomain = research.byInterestArea[7].areaName; rech.rchcitations = research.byInterestArea[7].citations; } else if (rd.Name == "lbl_rec_networking") { rech.rchtitle = "Research By Domain Area:"; rech.rchdomain = research.byInterestArea[6].areaName; rech.rchcitations = research.byInterestArea[6].citations; } else if (rd.Name == "lbl_rec_programming") { rech.rchtitle = "Research By Domain Area:"; rech.rchdomain = research.byInterestArea[9].areaName; rech.rchcitations = research.byInterestArea[9].citations; } else if (rd.Name == "lbl_rec_sa") { rech.rchtitle = "Research By Domain Area:"; rech.rchdomain = research.byInterestArea[10].areaName; rech.rchcitations = research.byInterestArea[10].citations; } else if (rd.Name == "lbl_rec_uc") { rech.rchtitle = "Research By Domain Area:"; rech.rchdomain = research.byInterestArea[11].areaName; rech.rchcitations = research.byInterestArea[11].citations; } else { rech.rchtitle = "Research By Domain Area:"; rech.rchdomain = research.byInterestArea[5].areaName; rech.rchcitations = research.byInterestArea[5].citations; } rech.Show(); }