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