Esempio n. 1
0
        private void btnFind_Click(object sender, EventArgs e)
        {
            BirdNameUpdateEventArgs args =
                new BirdNameUpdateEventArgs(listBox1.SelectedItem.ToString());


            BirdNameUpdated(this, args);
        }
Esempio n. 2
0
 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;
         }
     }
 }