private void update_animal_btn_Click(object sender, EventArgs e) { int index = animal_list_box.SelectedIndex; Animal animal = am.GetAnimal(index); animal.Update(); RefreshNameAnimalList(); }
private void add_new_animal_btn_Click(object sender, EventArgs e) { animal.Update(); StoreInfo.sharedStoreInfo().main.RefreshNameAnimalList(); this.Close(); }