// Gaat naar de usercontrols voor het bewerken/verwijderen van data private void buttonManageEdit_Click(object sender, EventArgs e) { if (ListViewActors.FocusedItem != null) { if (CurrentChoice == tableToDisplay.company) { ManageCompany ManageCompany = new ManageCompany(ref CompanyList, ref ContactpersonList, ref ContactpersonPeriodList, ListViewActors.FocusedItem, "Wijzigen"); ManageCompany.Size = new Size(908, 616); ManageCompany.Location = new Point(0, 86); this.Controls.Add(ManageCompany); ManageCompany.BringToFront(); } else if (CurrentChoice == tableToDisplay.user) { ManageUser ManageUser = new ManageUser(ref UserList, ref ContactpersonList, ref ContactpersonPeriodList, ListViewActors.FocusedItem, "Wijzigen"); ManageUser.Size = new Size(908, 616); ManageUser.Location = new Point(0, 86); this.Controls.Add(ManageUser); ManageUser.BringToFront(); } else if (CurrentChoice == tableToDisplay.contactperson) { ManageContactperson ManageContactperson = new ManageContactperson(ref UserList, ref CompanyList, ref ContactpersonList, ref ContactpersonPeriodList, ActivePerson, ListViewActors.FocusedItem, "Wijzigen"); ManageContactperson.Size = new Size(908, 616); ManageContactperson.Location = new Point(0, 86); this.Controls.Add(ManageContactperson); ManageContactperson.BringToFront(); } else if (CurrentChoice == tableToDisplay.contactperson_period) { ManageContactpersonPeriod ManageContactpersonPeriod = new ManageContactpersonPeriod(ref ContactpersonPeriodList, ref ContactpersonList, ref PeriodList, ListViewActors.FocusedItem); ManageContactpersonPeriod.buttonContactpersonPeriodDelete_Click(); } } }