public LoginViewModel()
 {
     _accountCatalogSingleton        = AccountCatalogSingleton.Instance;
     _accountsCollection             = new ObservableCollection <Account>(_accountCatalogSingleton.AccountsList);
     GoCreateAccountViewModelCommand = new RelayCommand(GoCreateAccountViewModel);
     LoginCommand = new RelayCommand(Login);
 }
Beispiel #2
0
 public CreateAccountViewModel()
 {
     GoLoginViewCommand       = new RelayCommand(GoLoginView);
     _accountCatalogSingleton = AccountCatalogSingleton.Instance;
     CreateAccountCommand     = new RelayCommand(NewAccount);
     _accountsCollection      = new ObservableCollection <Account>(_accountCatalogSingleton.AccountsList);
 }