public AuthenticationView(IAuthenticationViewModel viewModel) { InitializeComponent(); //Set Ui State to normal SetNormalUiState(); //bind UI to view model this.viewModel = viewModel; InitializeBinding(); //subscribe to events simpleButtonCancel.Click += CloseSignInView; CapsLockStatusChanged += AuthenticationView_CapsLockStatusChanged; FormClosing += OnClosingSignIn; KeyUp += AuthenticationView_KeyUp; SimpleButtonSignIn.Click += SignInUser; viewModel.AuthenticationStatusIndication += ViewModel_AuthenticationStatusIndication; //initialize caps locks status display on view CheckCapsLockStatus(); }
public Authenticate(IWindowManager windowManager, IAuthenticationViewModel authenticationViewModel) { this.windowManager = windowManager; this.authenticationViewModel = authenticationViewModel; }