private void pictureBox1_Click(object sender, EventArgs e) { AddNurse n = new AddNurse(); n.Show(); Close(); }
//if add button is clicked private void button1_Click(object sender, EventArgs e) { //check all comboBox, then go to corespondant SSN to update if (comboBox1.SelectedItem.ToString() == "Doctors") { AddDoctor ed = new AddDoctor(); ed.Show(); } else if (comboBox1.SelectedItem.ToString() == "Nurses") { AddNurse en = new AddNurse(); en.Show(); } else if (comboBox1.SelectedItem.ToString() == "Employees") { AddEmployee ee = new AddEmployee(); ee.Show(); } }