Пример #1
0
 public static LogBook LogBookInstance()
 {
     if (_instance == null)
     {
         lock (obj)
             if (_instance == null)
             {
                 _instance = new LogBook();
             }
     }
     return(_instance);
 }
Пример #2
0
 public List <Vozilo> VratiVozila(Vlasnik v)
 {
     return(LogBook.LogBookInstance().Evidencija
            .Where(x => (x.Key.JMBG == v.JMBG))
            .SelectMany(y => y.Value).ToList());
 }
Пример #3
0
 public List <Vlasnik> VratiVlasnike(string model)
 {
     return(LogBook.LogBookInstance().VratiVlasnike(model));
 }
Пример #4
0
 public Dictionary <Vlasnik, List <Vozilo> > VratiSve()
 {
     return(LogBook.LogBookInstance().Evidencija);
 }
Пример #5
0
 public void RegistrujVozilo(Vlasnik v, Vozilo z)
 {
     LogBook.LogBookInstance().Dodaj(v, z);
 }