public MainWindowViewModel()
 {
     LogInUser         = new Utilizator();
     CreateUser        = new Utilizator();
     entities          = new CabinetEntities1();
     UserVMCreate      = new UtilizatorViewModel();
     UserVMLogIn       = new UtilizatorViewModel();
     mainWindowActions = new MainWindowActions(this);
 }
Exemplo n.º 2
0
 public AdminViewModel() : base()
 {
     SelectedUserVM        = new UtilizatorViewModel();
     SelectedInterventieVM = new InterventieViewModel();
     SelectedPretVM        = new PretViewModel();
     SelectedPretVM2       = new PretViewModel();
     entities       = new CabinetEntities1();
     AllUsers       = GetAllUsers();
     AllPret        = GetAllPret();
     AllInterventii = GetAllInterventii();
     adminActions   = new AdminWindowActions(this);
 }