示例#1
0
        private void IdentityProviderList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            IdentityProviderInformation identityProvider = IdentityProviderList.SelectedItem as IdentityProviderInformation;

            NavigateToIdentityProvider(identityProvider);

            //
            // Reset to default value
            //
            IdentityProviderList.SelectedIndex = -1;
        }
示例#2
0
        private void NavigateToIdentityProvider(IdentityProviderInformation identityProvider)
        {
            if (null != identityProvider)
            {
                ShowProgressBar(String.Format(String.Format("Contacting {0}", identityProvider.Name)));

                lock (_navigatingToIdentityProviderLock)
                {
                    _navigatingToIdentityProvider      = true;
                    BrowserSigninControl.Navigated    += new EventHandler <NavigationEventArgs>(SignInWebBrowserControl_Navigated);
                    BrowserSigninControl.Navigating   += new EventHandler <NavigatingEventArgs>(SignInWebBrowserControl_Navigating);
                    BrowserSigninControl.ScriptNotify += new EventHandler <NotifyEventArgs>(SignInWebBrowserControl_ScriptNotify);
                    _selectedIdentityProvider          = identityProvider;
                    BrowserSigninControl.NavigateToString("<html><head><title></title></head><body></body></html>");
                }
            }
        }
 public DefaultIdentityProviderViewModel(IdentityProviderInformation model)
 {
     _model = model;
 }
示例#4
0
 public DefaultIdentityProviderViewModel(IdentityProviderInformation model)
 {
     _model = model;
 }
 internal IdentityProviderInformationEventArgs(IdentityProviderInformation identityProvider)
 {
     IdentityProviderInformation = identityProvider;
 }