Ejemplo n.º 1
0
        void mProfileTracker_mOnProfileChanged(object sender, OnProfileChangedEventArgs e)
        {
            if (e.mProfile != null)
            {
                try
                {
                    /* Controlar que se almacene en mi base???
                     * mTxtFirstName.Text = e.mProfile.FirstName;
                     * mTxtLastName.Text = e.mProfile.LastName;
                     * mTxtName.Text = e.mProfile.Name;
                     * mProfilePic.ProfileId = e.mProfile.Id;
                     */
                }

                catch (System.Exception ex)     /*Corregir o es java.exception */
                {
                    //
                }
            }

            else
            {
                //el usuario debe estar ingresado
                mTxtFirstName.Text    = "First Name";
                mTxtLastName.Text     = "Last Name";
                mTxtName.Text         = "Name";
                mProfilePic.ProfileId = null;
            }
        }
Ejemplo n.º 2
0
        void mProfileTracker_mOnProfileChanged(object sender, OnProfileChangedEventArgs e)
        {
            if (e.mProfile != null)
            {
                try
                {
                    /* Insanciar en mi base tambien ??
                     * mTxtFirstName.Text = e.mProfile.FirstName; //e.mProfile.FirstName;
                     * mTxtLastName.Text = e.mProfile.LastName;
                     * mTxtName.Text = e.mProfile.Name;
                     * mProfilePic.ProfileId = e.mProfile.Id;
                     *
                     */

                    SetContentView(Resource.Layout.Principal);

                    mToolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar);
                    SetSupportActionBar(mToolbar);
                    SupportActionBar.Title = "Hi,  " + e.mProfile.FirstName + " ! ";
                    spin();
                }

                catch (System.Exception ex)     /*Corregir o es java.exception */
                {
                    //
                }
            }

            else
            {
                //el usuario debe estar ingresado
                mTxtFirstName.Text    = "First Name";
                mTxtLastName.Text     = "Last Name";
                mTxtName.Text         = "Name";
                mProfilePic.ProfileId = null;
            }
        }