public LoginPasswordViewModel( ILoginPasswordView view, UserInformation userInformation, IDatabase dataBase )
        {
            view_ = view;
            view_.DataContext = this;

            userInformation_ = userInformation;
            dataBase_ = dataBase;
        }
        RuleController( IShellService shellService, LoginPasswordViewModel lpViewModel, IPValidationViewModel ipViewModel,
            FailedLoginCountViewModel failedLoginCountViewModel, UserInformation userInformation, IDatabase dataBase )
        {
            shellService_ = shellService;
            userInformation_ = userInformation;
            dataBase_ = dataBase;

            loginPasswordViewModel_ = lpViewModel;
            ipViewModel_ = ipViewModel;
            failedLoginCountViewModel_ = failedLoginCountViewModel;

            loginPasswordViewModel_.LoginCommand = new RelayCommand(( param ) => this.validate( ));
            ipViewModel_.LoginCommand = new RelayCommand(( param ) => this.validate( ));
            failedLoginCountViewModel.LoginCommand = new RelayCommand(( param ) => this.validate( ));

            ruleTree_.Add(loginPasswordViewModel_);
            ruleTree_.Add(ipViewModel_);
            ruleTree_.Add(failedLoginCountViewModel_);
        }
 public IPValidationViewModel( UserInformation userInformation, IDatabase dataBase )
 {
     userInformation_ = userInformation;
     dataBase_ = dataBase;
     ip_ = "127.0.0.1";
 }
 public FailedLoginCountViewModel( UserInformation userInformation, IDatabase dataBase )
 {
     userInformation_ = userInformation;
     dataBase_ = dataBase;
 }