コード例 #1
0
        public LoginPasswordViewModel( ILoginPasswordView view, UserInformation userInformation, IDatabase dataBase )
        {
            view_ = view;
            view_.DataContext = this;

            userInformation_ = userInformation;
            dataBase_ = dataBase;
        }
コード例 #2
0
        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_);
        }
コード例 #3
0
 public IPValidationViewModel( UserInformation userInformation, IDatabase dataBase )
 {
     userInformation_ = userInformation;
     dataBase_ = dataBase;
     ip_ = "127.0.0.1";
 }
コード例 #4
0
 public FailedLoginCountViewModel( UserInformation userInformation, IDatabase dataBase )
 {
     userInformation_ = userInformation;
     dataBase_ = dataBase;
 }