private void IdentityProviderListRefreshCompleted(object sender, GetIdentityProviderListEventArgs e)
        {
            var handler = new Handler(Context.MainLooper); //We need to update on UI thread.

            handler.Post(() =>
            {
                if (null == e.Error)
                {
                    _identityProviderList = new ListView(Context)
                    {
                        LayoutParameters =
                            new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FillParent,
                                                       ViewGroup.LayoutParams.FillParent)
                    };
                    _identityProviderList.SetPadding(10, 0, 0, 0);
                    _identityProviderList.ItemClick += OnIdentityProviderListOnItemClick;
                    _identityProviderList.Divider    = null;

                    AddView(_identityProviderList);

                    if (_identityProviderAdapter == null)
                    {
                        _identityProviderAdapter = new IdentityProviderAdapter(Context);
                    }

                    _identityProviderList.Adapter = _identityProviderAdapter;
                    _identityProviderAdapter.IdentityProviders = e.Result;

                    PostInvalidate();
                    HideProgressDialog();
                }
                else
                {
                    HideProgressDialog();
                    ShowAlertDialog("Oh no!", "An error occured with the message:\n" + e.Error.Message);
                }
            });
        }
        private void IdentityProviderListRefreshCompleted(object sender, GetIdentityProviderListEventArgs e)
        {
            var handler = new Handler(Context.MainLooper); //We need to update on UI thread.
            handler.Post(() =>
            {
                if (null == e.Error)
                {
                    _identityProviderList = new ListView(Context)
                    {
                        LayoutParameters =
                            new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FillParent,
                                                        ViewGroup.LayoutParams.FillParent)
                    };
                    _identityProviderList.SetPadding(10, 0, 0, 0);
                    _identityProviderList.ItemClick += OnIdentityProviderListOnItemClick;
                    _identityProviderList.Divider = null;

                    AddView(_identityProviderList);

                    if (_identityProviderAdapter == null)
                        _identityProviderAdapter = new IdentityProviderAdapter(Context);
                
                    _identityProviderList.Adapter = _identityProviderAdapter;
                    _identityProviderAdapter.IdentityProviders = e.Result;

                    PostInvalidate();
                    HideProgressDialog();
                }
                else
                {
                    HideProgressDialog();
                    ShowAlertDialog("Oh no!", "An error occured with the message:\n" + e.Error.Message);
                }
            });
        }