public AuthenticationResult AuthenticateUser()
        {
            AuthenticationViewModel authenticationViewModel = new AuthenticationViewModel();

            ShowDialog(authenticationViewModel);

            return(authenticationViewModel.LoginResult);
        }
        internal void ShowDialog(AuthenticationViewModel authenticationViewModel)
        {
            Window authenticationView = new AuthenticationView()
            {
                DataContext = authenticationViewModel,
            };

            authenticationViewModel.Finished += OnAuthenticationViewModelFinished(authenticationView);

            authenticationView.ShowDialog();

            authenticationViewModel.Finished -= OnAuthenticationViewModelFinished(authenticationView);
        }