private void update() { if (role == "pm") { ProjectManagerController.updateProjectManager(textBoxName.Text, textBoxSurname.Text, textBoxEmail.Text, textBoxLocation.Text); MessageBox.Show("Successful"); } else if (role == "p") { PersonelController.updatePersonel(textBoxName.Text, textBoxSurname.Text, textBoxEmail.Text, textBoxLocation.Text); MessageBox.Show("Successful"); } else { ManagerController.updateManager(textBoxName.Text, textBoxSurname.Text, textBoxEmail.Text, textBoxTeam.Text, textBoxLocation.Text); MessageBox.Show("Successful"); } }