public OstaleFunkcionalnostiViewModel()
 {
     Sistem            = new GlasackiSistem();
     NavigationService = new NavigationService();
     dodajTweet("");
     PregledNovosti       = new RelayCommand <object>(otvoriNovost, jeLiMoguce);
     Nazad                = new RelayCommand <object>(idiNazad, jeLiMoguce);
     PregledStatistike    = new RelayCommand <object>(otvoriStatistiku, jeLiMoguce);
     PregledStranaka      = new RelayCommand <object>(otvoriStranke, jeLiMoguce);
     PregledHistorije     = new RelayCommand <object>(otvoriHistoriju, jeLiMoguce);
     RegistrujSe          = new RelayCommand <object>(registruj, jeLiMoguce);
     PretraziKandidate    = new RelayCommand <object>(pretraziKandidata, jeLiMoguce);
     PronalazakBM         = new RelayCommand <object>(nadjiBM, jeLiMoguce);
     ZaSlijepeISlabovidne = new RelayCommand <object>(slijepi, jeLiMoguce);
     PregledTwittera      = new RelayCommand <object>(idiNaTwitter, jeLiMoguce);
     Glasaj               = new RelayCommand <object>(glasaj, jeLiMoguce);
     Printanje            = new RelayCommand <object>(otvoriGL, jeLiMoguce);
     if (indikator == 0)
     {
         Task.Run(() => pustiZvuk());
         //t.Start();
         //pustiZvuk();
     }
     indikator = 1;
 }
Пример #2
0
 public DataSource()
 {
     Glasac         g1  = DajSveGlasace()[0];
     GlasackiSistem gs1 = DajSveGlasackeSisteme()[0];
     Stranka        s1  = DajSveStranke()[0];
     Ulica          u1  = DajSveUlice()[0];
     Novost         n1  = DajSveNovosti()[0];
 }