public List <Pica> IsciPice(TipPice tipPice) { List <Pica> temp = new List <Pica>(); foreach (Pica pica in stalna_ponudba) { if (pica.tipPice == tipPice) { temp.Add(pica); } } return(temp); }
public Pica(string sestavine, TipPice tipPice, double cena) { this.sestavine = sestavine; this.tipPice = tipPice; this.cena = cena; }