Exemple #1
0
        public MainViewModel(string login)
        {
            _login              = login;
            _sessionBM          = new UserBM(login);
            LogoutCommand       = new RelayCommand(param => LogoutSession(), param => true);
            UsersViewCommand    = new RelayCommand(param => LoadUsersView(), param => true);
            PatientsViewCommand = new RelayCommand(param => LoadPatientsView(), param => true);

            InitializeUser();
            LoadUsersView();

            PageMediator.Register("Change_Main_UC", OnChangeView);
        }
 public MainWindowViewModel()
 {
     CurrentUC = new LoginUC();
     PageMediator.Register("Change_MainWindow_UC", OnConnectView);
 }