Example #1
0
        // public List<Korisnik> korisnici { get; set; }
        public LoginViewModel(HomepageViewModel parent)
        {
            // korisnici = new List<Korisnik>();

            NavigationService = new NavigationService();
            Parent            = parent;
            PrijaviSe         = new RelayCommand <object>(prijaviSe, mozeLiSePrijaviti);
        }
Example #2
0
 public RegistracijaViewModel(HomepageViewModel parent)
 {
     Parent                  = parent;
     DodavanjeKorisnika      = new RelayCommand <object>(dodavanjeKorisnika, mozeLiSeDodatiKorisnik);
     OtkaziRegistraciju      = new RelayCommand <object>(otkaziRegistraciju, mozeLiSeOtkazatiRegistracija);
     Korisnik                = new Korisnik();
     Korisnik.ErrorsChanged += Vm_ErrorsChanged;
 }