protected override void Delete() { if (ListViewBasic.SelectedItems.Count != 0) { // Get RefFamily from the ListView int RefFamily = int.Parse(ListViewBasic.SelectedItems[0].Text); if (ControllerManagement.DeleteFamily(RefFamily)) { ControllerManagement.RefreshListViewFamily(); MessageBox.Show("Succesfully deleted the Family !"); } else { MessageBox.Show("Error : Fail to delete the Family ! "); } } else { MessageBox.Show("Error : Choose a Family before trying to delete it !"); } }