示例#1
0
        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();
        }
示例#2
0
 public Authenticate(IWindowManager windowManager, IAuthenticationViewModel authenticationViewModel)
 {
     this.windowManager           = windowManager;
     this.authenticationViewModel = authenticationViewModel;
 }
示例#3
0
 public Authenticate(IWindowManager windowManager, IAuthenticationViewModel authenticationViewModel)
 {
     this.windowManager = windowManager;
     this.authenticationViewModel = authenticationViewModel;
 }