private void btnFind_Click(object sender, EventArgs e) { BirdNameUpdateEventArgs args = new BirdNameUpdateEventArgs(listBox1.SelectedItem.ToString()); BirdNameUpdated(this, args); }
private void FindBird(object sender, BirdNameUpdateEventArgs e) { for (int i = 0; i < birds.Count; i++) { if (birds[i].BirdName == e.BirdName) { currentBird = birds[i]; LoadCurrentBird(); currentPosition = i; } } }