Exemplo n.º 1
0
 private void btnSacuvaj_Click(object sender, RoutedEventArgs e)
 {
     if (stanje == Stanje.DODAVANJE)
     {
         racun.UkupnaCena += 150;
         Racun.Create(racun);
         foreach (var x in dodateStavke)
         {
             Namestaj.Update(x.Namestaj);
             Stavka.AddForRacun(racun, x);
         }
         foreach (var x in dodateUsluge)
         {
             DodatnaUsluga.AddForRacun(racun, x);
         }
     }
     Model.Racun.Update(racun);
     this.Close();
 }