Beispiel #1
0
 protected void insertFood(object sender, EventArgs e)
 {
     ENFood newfood = new ENFood (entryName.Text, (int)spinbuttonQuantity.Value, seleccionado);
     newfood.Save ();
     entryName.Text = "";
     spinbuttonQuantity.Value = 0;
     fillTree ();
 }
Beispiel #2
0
 public void SaveNullName()
 {
     AEN food = new ENFood(null);
     food.Save();
 }
Beispiel #3
0
 public void Save()
 {
     AEN food = new ENFood("Peres");
     food.Save();
 }