Exemplo n.º 1
0
 public void UpdateFlower(BlomsterSort flower)
 {
     for (int i = 0; i < blomster.Count; i++)
     {
         if (blomster[i].Name == flower.Name)
         {
             blomster[i] = flower;
         }
     }
 }
Exemplo n.º 2
0
 public void DeleteFlower(BlomsterSort flower)
 {
     blomster.Remove(flower);
 }
Exemplo n.º 3
0
 public void AddFlower(BlomsterSort flower)
 {
     blomster.Add(flower);
 }
Exemplo n.º 4
0
        public void UpdateFlowerInformation(string name, string picturepath, int produktionstid, int halveringstid, int størrelse)
        {
            BlomsterSort b1 = new BlomsterSort(name, picturepath, produktionstid, halveringstid, størrelse);

            repo.UpdateFlower(b1);
        }