Exemple #1
0
 private void osvjezi_listu_narudzbi()
 {
     foreach (article control in artikli)
     {
         flowLayoutPanel1.Controls.Remove(control);
         control.Dispose();
     }
     racun_ukupno = 0;
     for (int i = 0; i < Lista_narudzbi.Count; i++)
     {
         article article1 = new article(Lista_narudzbi[i], flowLayoutPanel2, azuriraj_racun);
         racun_ukupno            = racun_ukupno + Lista_narudzbi[i].kolicina * Lista_narudzbi[i].cijena;
         price_to_pay_label.Text = Convert.ToString(racun_ukupno);
         artikli.Add(article1);
         flowLayoutPanel2.Controls.Add(article1);
     }
 }