private void logOutFromFacebook() { v_IsUserConnectedToFB = false; m_AppSettings.LastAccessToken = null; UserProfilePictureBox.Invoke(new Action(() => UserProfilePictureBox.ImageLocation = r_FaceBookAnonymousURL)); LoginOrDisconnectPictureBox.Invoke(new Action(() => LoginOrDisconnectPictureBox.ImageLocation = r_LoginToFaceBookRequestURL)); clearAllUserData(); }
private void updateInfo() { setTimeAndDate(); setCoverPicture(); UserNameLabel.Text = m_LoggedInUser.Name; UserProfilePictureBox.LoadAsync(m_LoggedInUser.PictureNormalURL); UserBirthdayLabel.Text = getBirthdayDate(); UserEmailLabel.Text = getEmail(); UserLivesInLabel.Text = getLocationName(); UserGenderLabel.Text = getUserGender(); UserInterestedInLabel.Text = getUserInterstedIn(); HoroscopeBirthdayLabel.Text = "Birthday: " + getBirthdayDate(); if (m_LoggedInUser.Birthday != null) { updateHoroscopeTabInfo(m_LoggedInUser.Birthday); } else { fetchUserBirthday(); } }
private void fetchUserProfilePicture() { UserProfilePictureBox.Invoke(new Action(() => UserProfilePictureBox.SizeMode = PictureBoxSizeMode.StretchImage)); UserProfilePictureBox.Invoke(new Action(() => UserProfilePictureBox.ImageLocation = m_LoggedInUser.PictureLargeURL)); }