Ejemplo n.º 1
0
 /// <summary>
 /// Saving the values in the fields to access from outside
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnSave_Click(object sender, System.EventArgs e)
 {
     NewBird = (Bird) cmbBirdSort.SelectedItem;
     NewObservationType = (ObservationType) cmbObservationType.SelectedItem;
     Details = txtDetails.Text;
     Close();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Insert bird
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public Bird Insert(Bird entity)
 {
     return _context.Insert(entity);
 }