private void OnLogin(LoginMessage obj)
        {
            if (App.UtilizatorCurent.Tip == ut.elev)
            {
                CurrentView = new ElevWindow(new ElevWindowViewModel(App.UtilizatorCurent.Id));
            }

            if (App.UtilizatorCurent.Tip == ut.profesor)
            {
                CurrentView = new ProfesoriWindow(new ProfesoriWindowViewModel(App.UtilizatorCurent.Id));
            }
        }
 private void BackFunction(LoadingMessage obj)
 {
     CurrentView = new ProfesoriWindow(new ProfesoriWindowViewModel(App.UtilizatorCurent.Id));
 }