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 fetchUserProfilePicture() { UserProfilePictureBox.Invoke(new Action(() => UserProfilePictureBox.SizeMode = PictureBoxSizeMode.StretchImage)); UserProfilePictureBox.Invoke(new Action(() => UserProfilePictureBox.ImageLocation = m_LoggedInUser.PictureLargeURL)); }