예제 #1
0
 private void cleanProfile()
 {
     profilePicture.Image            = null;
     m_LoggedInUser                  = null;
     this.rememberMecheckBox.Checked = false;
     UserInfoTextBox.Clear();
     lastPostsListBox.Items.Clear();
     pictureBoxRandomFriendProfilePic.Image = null;
     welcomLabel.Text = string.Empty;
 }
예제 #2
0
 private void fetchUserPersonalInfo()
 {
     if (m_LoggedInUser != null)
     {
         string birthDayUser = m_LoggedInUser.Birthday;
         string genderUser   = m_LoggedInUser.Gender.ToString();
         string IDUser       = m_LoggedInUser.Id;
         UserInfoTextBox.Invoke(new Action(() =>
                                           UserInfoTextBox.Text = string.Format("{0} BirthDay {1}\n{0} Gender: {2}\n{0} ID: {3}", m_LoggedInUser.FirstName, birthDayUser, genderUser, IDUser)));
     }
 }