Exemple #1
0
        public bool ObrisiZabranu(String zab)
        {
            Zabrana tmpZabrana = null;

            foreach (var k in _listaZabrana)
            {
                if (k.Kategorija == zab)
                {
                    tmpZabrana = k;
                    break;
                }
            }

            if (tmpZabrana != null)
            {
                _listaZabrana.Remove(tmpZabrana);
                return(true);
            }

            return(false);
        }
Exemple #2
0
 public void DodajZabranu(Zabrana z)
 {
     _listaZabrana.Add(z);
 }