Exemplo n.º 1
0
 private void button_Delete_Click(object sender, EventArgs e)
 {
     if (pn.DetelePerson(comboBox_Delete_Name.Text))
     {
         MessageBox.Show("Successfully deleted.", "Delete Person", MessageBoxButtons.OK);
         button_Delete.Enabled     = false;
         comboBox_Delete_Name.Text = "";
         ClearComboboxItems();
         UpdateComboboxItems();
         foreach (Person p in PersonController.ListofPerson)
         {
             Console.WriteLine(p.name);
         }
     }
 }