示例#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 ();
 }
示例#2
0
文件: ENFoodTest.cs 项目: 44r0n/Gebat
 public void SaveNullName()
 {
     AEN food = new ENFood(null);
     food.Save();
 }
示例#3
0
文件: ENFoodTest.cs 项目: 44r0n/Gebat
 public void Save()
 {
     AEN food = new ENFood("Peres");
     food.Save();
 }