Exemple #1
0
        public SignUpViewModel()
        {
            _impl = new UserRepoImpl(new socialNetworkLabEntities());
            _User = new User();

            _Register = new RelayCommand(o =>
            {
                SignUpClick();
            }, f => !(String.IsNullOrEmpty(FirstName) ||
                      String.IsNullOrEmpty(LastName) ||
                      String.IsNullOrEmpty(Email) ||
                      String.IsNullOrEmpty(Password) ||
                      Birthday < DateTime.Now.AddDays(-365 * 18)));
        }
Exemple #2
0
 public SignInViewModel()
 {
     _impl = new UserRepoImpl(new socialNetworkLabEntities());
 }