Exemplo n.º 1
0
        public LoginViewModel(
            Common.Configuration.Config appConfig,
            LoginWindowViewModel loginWindowViewModel,
            IActiveUrls urls,
            IAppSettings appSettings,
            LoginErrorViewModel loginErrorViewModel,
            UserAuth userAuth,
            IModals modals,
            GuestHoleConnector guestHoleConnector,
            GuestHoleState guestHoleState)
        {
            _appConfig            = appConfig;
            _userAuth             = userAuth;
            _appSettings          = appSettings;
            _urls                 = urls;
            _modals               = modals;
            _loginWindowViewModel = loginWindowViewModel;
            _guestHoleConnector   = guestHoleConnector;
            _guestHoleState       = guestHoleState;
            LoginErrorViewModel   = loginErrorViewModel;

            LoginCommand             = new RelayCommand(LoginAction);
            RegisterCommand          = new RelayCommand(RegisterAction);
            HelpCommand              = new RelayCommand(HelpAction);
            ToggleHelpBalloon        = new RelayCommand(ToggleBalloonAction);
            ResetPasswordCommand     = new RelayCommand(ResetPasswordAction);
            ForgotUsernameCommand    = new RelayCommand(ForgotUsernameAction);
            DisableKillSwitchCommand = new RelayCommand(DisableKillSwitchAction);
        }
Exemplo n.º 2
0
        public LoginViewModel(
            Common.Configuration.Config appConfig,
            LoginWindowViewModel loginWindowViewModel,
            IActiveUrls urls,
            IAppSettings appSettings,
            LoginErrorViewModel loginErrorViewModel,
            UserAuth userAuth)
        {
            _appConfig            = appConfig;
            _userAuth             = userAuth;
            _appSettings          = appSettings;
            _urls                 = urls;
            _loginWindowViewModel = loginWindowViewModel;
            LoginErrorViewModel   = loginErrorViewModel;

            LoginCommand          = new RelayCommand(LoginAction);
            RegisterCommand       = new RelayCommand(RegisterAction);
            HelpCommand           = new RelayCommand(HelpAction);
            ToggleHelpBalloon     = new RelayCommand(ToggleBalloonAction);
            ResetPasswordCommand  = new RelayCommand(ResetPasswordAction);
            ForgotUsernameCommand = new RelayCommand(ForgotUsernameAction);
        }