Example #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 ();
 }
Example #2
0
 public void SaveNullName()
 {
     AEN food = new ENFood(null);
     food.Save();
 }
Example #3
0
 public void Save()
 {
     AEN food = new ENFood("Peres");
     food.Save();
 }